[FEATURE] LaunchServer save command

This commit is contained in:
Gravita 2021-02-12 21:33:05 +07:00
parent 3cd9ddee0d
commit b8be6d4ef6

View file

@ -293,6 +293,15 @@ public void invoke(String... args) throws Exception {
} }
}; };
commands.put("reload", reload); commands.put("reload", reload);
SubCommand save = new SubCommand() {
@Override
public void invoke(String... args) throws Exception {
launchServerConfigManager.writeConfig(config);
launchServerConfigManager.writeRuntimeConfig(runtime);
LogHelper.info("LaunchServerConfig saved");
}
};
commands.put("save", save);
return commands; return commands;
} }