Handle generalSettings saving

This commit is contained in:
Matt
2019-11-28 09:13:16 -08:00
parent 2a96ee917d
commit 1d721f7867

View File

@@ -135,6 +135,15 @@ public class SocketHandler {
sendFullSettings();
break;
}
case "generalSettings": {
var array = (HashMap<String, Object>) entry.getValue();
array.forEach((key, value) -> {
setField(ConfigManager.settings, key, value);
});
sendFullSettings();
ConfigManager.saveGeneralSettings();
break;
}
default: {
// TODO fix this hack
String key;