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("disableRespawnAnchorExplosions", false);
|
||||
setDefault("iphubApiKey", "");
|
||||
setDefault("spawn", (new PlayerPosition()).getJSON());
|
||||
saveConfig();
|
||||
|
||||
LOGGER.info("Configuration loaded");
|
||||
}
|
||||
@ -89,12 +91,7 @@ public class Config {
|
||||
saveConfig();
|
||||
}
|
||||
|
||||
public static void setDefault(String key, JSONArray data) {
|
||||
if (!json.has(key))
|
||||
json.put(key, data);
|
||||
}
|
||||
|
||||
public static void setDefault(String key, Boolean data) {
|
||||
public static void setDefault(String key, Object data) {
|
||||
if (!json.has(key))
|
||||
json.put(key, data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user