Use Arena "config name" on leaderboard headers.

Going forward, it should be possible to show "pretty" arena names by
simply using a pretty name in the config-file instead of slug-like names
now that slugs are on the horizon.
This commit is contained in:
Andreas Troelsen
2020-11-03 19:58:30 +01:00
parent f10c7e464c
commit fdb84dfaf4
2 changed files with 2 additions and 1 deletions
@@ -136,7 +136,7 @@ public class MAGlobalListener implements Listener
if ((arena = am.getArenaWithName(text)) != null) {
arena.getEventListener().onSignChange(event);
setSignLines(event, ChatColor.GREEN + "MobArena", ChatColor.YELLOW + arena.arenaName(), ChatColor.AQUA + "Players", "---------------");
setSignLines(event, ChatColor.GREEN + "MobArena", ChatColor.YELLOW + arena.configName(), ChatColor.AQUA + "Players", "---------------");
}
else if ((stat = Stats.getByShortName(text)) != null) {
setSignLines(event, ChatColor.GREEN + "", "", ChatColor.AQUA + stat.getFullName(), "---------------");