From 2a87aef9f3aede510e70c0f9306d5f2cb294a7e6 Mon Sep 17 00:00:00 2001 From: Andreas Troelsen Date: Sun, 1 Nov 2020 16:45:17 +0100 Subject: [PATCH] Use class "config name" on leaderboard signs. Same as with arena names, we can just use the class "config name" on leaderboards for a prettier experience. --- changelog.md | 2 +- .../java/com/garbagemule/MobArena/ArenaPlayerStatistics.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 2060a22..fe25ae9 100644 --- a/changelog.md +++ b/changelog.md @@ -27,7 +27,7 @@ These changes will (most likely) be included in the next version. - Commands that resolve arena and/or class names now consistently resolve and tab complete "slugs" instead of arbitrarily "squashed" names. This greatly improves support for multi-word names. - The class signs generated by the `/ma autogenerate` command now use class names from the config-file instead of arbitrarily "squashed" names. - The `/ma addarena` and `/ma autogenerate` commands now supports multi-word arena names. -- Leaderboards now use arena names from the config-file instead of arbitrarily "prettified" names. +- Leaderboards now use arena and class names from the config-file instead of arbitrarily "prettified" names. - Using `spectate-on-death: true` no longer forces players out to their join location/exit warp before moving them to the spectator area. This should prevent "jumpy" behavior in multi-world setups. - Players should now properly respawn at the spectator area rather than at world spawn on servers with plugins that override respawn locations. - Config-files with missing `pet-items` nodes no longer errors. A missing `pet-items` node in `global-settings` is treated as empty, i.e. no pet items will be registered. diff --git a/src/main/java/com/garbagemule/MobArena/ArenaPlayerStatistics.java b/src/main/java/com/garbagemule/MobArena/ArenaPlayerStatistics.java index 64c8fcd..f1cf5d6 100644 --- a/src/main/java/com/garbagemule/MobArena/ArenaPlayerStatistics.java +++ b/src/main/java/com/garbagemule/MobArena/ArenaPlayerStatistics.java @@ -17,7 +17,7 @@ public class ArenaPlayerStatistics public ArenaPlayerStatistics(ArenaPlayer player) { this.player = player; this.playerName = player.getPlayer().getName(); - this.className = player.getArenaClass().getLowercaseName(); + this.className = player.getArenaClass().getConfigName(); reset(); }