(CommandHandler handler)
| 33 | } |
| 34 | |
| 35 | public static void update(CommandHandler handler) { |
| 36 | commands.forEach(command -> { |
| 37 | if (command.value != temp.get(command.key)) { |
| 38 | handler.removeCommand("host"); |
| 39 | |
| 40 | handler.register("host", "[mapname] [mode]", "Open the server. Will default to survival and a random map if not specified.", arg -> |
| 41 | arc.util.Log.warn("Changes have been made. Please restart the server for them to take effect. (tip: write 'exit' to shut down the server)") |
| 42 | ); |
| 43 | return; |
| 44 | } |
| 45 | }); |
| 46 | } |
| 47 | |
| 48 | public static void load(CommandHandler handler) { |
| 49 | while (!canLoad) {} |
no test coverage detected