Make non-sign leaderboard-nodes non-fatal.

This commit is contained in:
Andreas Troelsen 2013-04-04 05:04:25 +02:00
parent 6663235a83
commit 0ea5c7a313

View File

@ -60,8 +60,10 @@ public class Leaderboard
return; return;
} }
if (!(topLeft.getBlock().getState() instanceof Sign)) if (!(topLeft.getBlock().getState() instanceof Sign)) {
throw new IllegalArgumentException("Block must be a sign!"); Messenger.warning("The leaderboard-node for arena '" + arena.configName() + "' does not point to a sign! Note that leaderboards must be in the same world as the arena itself!");
return;
}
this.topLeft = topLeft; this.topLeft = topLeft;
} }