mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-27 04:55:25 +01:00
Backwards compatibility for leaderboard coords.
This commit is contained in:
parent
186fc498cf
commit
8793bd6cef
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user