Add config value for IPHub.info API key
This commit is contained in:
parent
5e0cbb265b
commit
0778e579d0
|
@ -37,7 +37,9 @@ public class Config {
|
||||||
|
|
||||||
setDefault("disableTntExplosions", false);
|
setDefault("disableTntExplosions", false);
|
||||||
setDefault("disableRespawnAnchorExplosions", false);
|
setDefault("disableRespawnAnchorExplosions", false);
|
||||||
|
setDefault("iphubApiKey", "");
|
||||||
setDefault("spawn", (new PlayerPosition()).getJSON());
|
setDefault("spawn", (new PlayerPosition()).getJSON());
|
||||||
|
saveConfig();
|
||||||
|
|
||||||
LOGGER.info("Configuration loaded");
|
LOGGER.info("Configuration loaded");
|
||||||
}
|
}
|
||||||
|
@ -89,12 +91,7 @@ public class Config {
|
||||||
saveConfig();
|
saveConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setDefault(String key, JSONArray data) {
|
public static void setDefault(String key, Object data) {
|
||||||
if (!json.has(key))
|
|
||||||
json.put(key, data);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void setDefault(String key, Boolean data) {
|
|
||||||
if (!json.has(key))
|
if (!json.has(key))
|
||||||
json.put(key, data);
|
json.put(key, data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user