diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServer.java b/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServer.java index 202459d6..724d8a31 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServer.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/LaunchServer.java @@ -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; }