From c64e693861b050b086b1b163dab007fb2c6df691 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 7 Jan 2021 13:39:28 -0800 Subject: [PATCH] Less capitals in broadcast msg --- Changelog.txt | 1 + .../java/com/gmail/nossr50/util/player/NotificationManager.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index cd1ed48f5..f047258a8 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,5 +1,6 @@ Version 2.1.171 Fixed a bug where arrows shot by infinite bow enchant would duplicate + Fixed a bug where Archery XP would calculate incorrectly Axes can now replant cocoa plants (thanks Lyther) Players who level up at certain milestones have their level ups broadcast to the server (very configurable and optional, see notes) Added Level_Up_Chat_Broadcasts settings to config.yml under General diff --git a/src/main/java/com/gmail/nossr50/util/player/NotificationManager.java b/src/main/java/com/gmail/nossr50/util/player/NotificationManager.java index 5e20de087..94b00513b 100644 --- a/src/main/java/com/gmail/nossr50/util/player/NotificationManager.java +++ b/src/main/java/com/gmail/nossr50/util/player/NotificationManager.java @@ -286,7 +286,7 @@ public class NotificationManager { .append(Component.text(primarySkillType.getName()+" reached level "+level)).color(TextColor.fromHexString(HEX_BEIGE_COLOR)) .asHoverEvent(); - String localeMessage = LocaleLoader.getString("Broadcasts.LevelUpMilestone", mmoPlayer.getPlayer().getDisplayName(), level, primarySkillType.toString()); + String localeMessage = LocaleLoader.getString("Broadcasts.LevelUpMilestone", mmoPlayer.getPlayer().getDisplayName(), level, primarySkillType.getName()); Component message = Component.text(localeMessage).hoverEvent(levelMilestoneHover); audience.sendMessage(Identity.nil(), message);