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

Method saveSettings

src/main/java/data/Switcher.java:170–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168 }
169
170 public static void saveSettings() {
171 if (lobby == null) Core.settings.putJson("SwitchList", ordonedList.asMap(i -> i.name, i -> i.address() + "-" + i.forAdmin));
172 else Core.settings.putJson("SwitchList", ordonedList.addAll(lobby).asMap(i -> i.name, i -> i.address() + "-" + i.forAdmin));
173 }
174
175
176 public static class ConnectReponse {

Callers 2

loadMethod · 0.95

Calls 1

addressMethod · 0.80

Tested by

no test coverage detected