mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FEATURE] LaunchServer save command
This commit is contained in:
parent
3cd9ddee0d
commit
b8be6d4ef6
1 changed files with 9 additions and 0 deletions
|
@ -293,6 +293,15 @@ public void invoke(String... args) throws Exception {
|
|||
}
|
||||
};
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue