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

Method init

src/main/java/manager/CommandsManager.java:71–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 }
70
71 public static void init() {
72 if (Core.settings.has("handlerManager")) {
73 try {
74 String[] temp;
75 for (String line : Core.settings.getString("handlerManager").split(" \\| ")) {
76 temp = line.split("\\=");
77 commands.put(temp[0], Boolean.parseBoolean(temp[1]));
78 }
79 } catch (Exception e) { save(); }
80
81 } else save();
82
83 canLoad = true;
84 }
85
86
87 public static class Commands {

Callers 1

initMethod · 0.95

Calls 2

saveMethod · 0.95
putMethod · 0.45

Tested by

no test coverage detected