Don't load a jail if the world is empty, warn them about it. #41
This commit is contained in:
parent
fdfd0bb2c9
commit
e4a3eb80c4
@ -598,7 +598,7 @@ public class JailIO {
|
||||
pl.debug("Loading the jail " + name + "; " + node + "; " + cNode);
|
||||
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.");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user