MCPcopy Create free account
hub / github.com/ZetaMap/MoreCommands / update

Method update

src/main/java/manager/CommandsManager.java:35–46  ·  view source on GitHub ↗
(CommandHandler handler)

Source from the content-addressed store, hash-verified

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) {}

Callers 1

Calls 2

warnMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected