Don't load a jail if the world is empty, warn them about it. #41

This commit is contained in:
graywolf336 2015-01-27 17:37:55 -06:00
parent fdfd0bb2c9
commit e4a3eb80c4

View File

@ -598,7 +598,7 @@ public class JailIO {
pl.debug("Loading the jail " + name + "; " + node + "; " + cNode); pl.debug("Loading the jail " + name + "; " + node + "; " + cNode);
Jail j = new Jail(pl, name); Jail j = new Jail(pl, name);
if(flat.getString(node + "world").isEmpty()) { if(flat.getString(node + "world") == null || flat.getString(node + "world").isEmpty()) {
pl.getLogger().severe("Failed to load the jail, " + name + ", because the world is not set."); pl.getLogger().severe("Failed to load the jail, " + name + ", because the world is not set.");
return; return;
} }