This commit is contained in:
Anuken
2023-02-01 14:42:50 -05:00
parent 411399e96f
commit c2262cc9cf
6 changed files with 29 additions and 12 deletions

View File

@@ -116,6 +116,8 @@ public class ServerControl implements ApplicationListener{
registerCommands();
Core.app.post(() -> {
//try to load auto-update save if possible
if(Config.autoUpdate.bool()){
@@ -255,7 +257,10 @@ public class ServerControl implements ApplicationListener{
//autosave settings once a minute
float saveInterval = 60;
Timer.schedule(() -> Core.settings.forceSave(), saveInterval, saveInterval);
Timer.schedule(() -> {
netServer.admins.forceSave();
Core.settings.forceSave();
}, saveInterval, saveInterval);
if(!mods.list().isEmpty()){
info("@ mods loaded.", mods.list().size);