Make non-sign leaderboard-nodes non-fatal.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user