Load new config if one does not already exist
Signed-off-by: Ryan Fox <flewkey@2a03.party>
This commit is contained in:
parent
b7fd1fe3ef
commit
344940417e
@ -33,7 +33,9 @@ public class Config {
|
||||
String jsonRaw = IOUtils.toString(is, "UTF-8");
|
||||
json = new JSONObject(jsonRaw);
|
||||
} else {
|
||||
logger.info("Unable to find config");
|
||||
logger.info("Config not found, creating one");
|
||||
json = new JSONObject("{\"spawn\":[0,0,0,0,0,-2],\"members\":[]}");
|
||||
saveConfig();
|
||||
}
|
||||
logger.info("Configuration loaded");
|
||||
}
|
||||
|
Reference in New Issue
Block a user