This commit is contained in:
Anuken
2020-08-18 11:23:17 -04:00
parent 065a8e712c
commit 1007667f9a
4 changed files with 22 additions and 11 deletions

View File

@@ -208,6 +208,10 @@ public class ServerControl implements ApplicationListener{
}
});
//autosave settings once a minute
float saveInterval = 60;
Timer.schedule(() -> Core.settings.forceSave(), saveInterval, saveInterval);
if(!mods.list().isEmpty()){
info("&lc@ mods loaded.", mods.list().size);
}
@@ -516,6 +520,7 @@ public class ServerControl implements ApplicationListener{
}
Log.info("&lc@&lg set to &lc@.", c.name(), c.get());
Core.settings.forceSave();
}
}catch(IllegalArgumentException e){
err("Unknown config: '@'. Run the command with no arguments to get a list of valid configs.", arg[0]);