added save command
@@ -26,6 +26,15 @@ public class HelpCommand extends CommandMod {
super("HelpCommand");
}
+ @RegisterCommand
+ public Command save(CommandBuilders builder) {
+ return builder.newCommandBuilder()
+ .name("save")
+ .description("Save all configurations")
+ .processor(data -> getGlobalCommand().serializeAll())
+ .build();
+ }
+
@RegisterCommand
public Command help(CommandBuilders builder) {
return builder.newCommandBuilder()
