diff --git a/resources/plugin.yml b/resources/plugin.yml index c41cd82..a4b43dc 100644 --- a/resources/plugin.yml +++ b/resources/plugin.yml @@ -1,7 +1,7 @@ name: MobArena author: garbagemule main: com.garbagemule.MobArena.MobArena -version: 0.95.5.19 +version: 0.95.5.21 softdepend: [Multiverse-Core,Towny,Heroes,MagicSpells,Vault] commands: ma: diff --git a/src/com/garbagemule/MobArena/region/ArenaRegion.java b/src/com/garbagemule/MobArena/region/ArenaRegion.java index 0f3112c..7d20202 100644 --- a/src/com/garbagemule/MobArena/region/ArenaRegion.java +++ b/src/com/garbagemule/MobArena/region/ArenaRegion.java @@ -77,7 +77,12 @@ public class ArenaRegion } public void reloadLeaderboards() { - leaderboard = parseLocation(coords, "leaderboard", null); + // try-catch for backwards compatibility + try { + leaderboard = parseLocation(coords, "leaderboard", null); + } catch (IllegalArgumentException e) { + leaderboard = parseLocation(coords, "leaderboard", world); + } if (leaderboard != null && leaderboard.getWorld() == null) { leaderboard.setWorld(world); }