flewkey
/
mc.2a03.party
Archived
1
0
Fork 0

Load new config if one does not already exist

Signed-off-by: Ryan Fox <flewkey@2a03.party>
This commit is contained in:
Ryan Fox 2019-07-27 22:24:54 +00:00
parent b7fd1fe3ef
commit 344940417e
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E
1 changed files with 3 additions and 1 deletions

View File

@ -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");
}