From 96e70aa4d201de88dab9964e2a412733e9079e7e Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 3 Jul 2012 08:40:56 -0400 Subject: [PATCH] Fixed "lower tool" messages still being displayed even when ability messages are disabled. --- Changelog.txt | 1 + src/main/java/com/gmail/nossr50/util/Skills.java | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index 32e4b8565..1bf13b9a3 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -24,6 +24,7 @@ Version 1.3.10-dev = Fixed issue with UTFDataFormatException occurring on occasion when trying to load Chunklets = Fixed ArrayIndexOutOfBounds error caused when trying to use /xplock after logging in but before gaining XP = Fixed custom tools not properly respecting the Ability_Enabled flag. + = Fixed "lower tool" messages still being displayed even when ability messages are disabled. ! Optimized how player placed blocks are tracked Version 1.3.09 diff --git a/src/main/java/com/gmail/nossr50/util/Skills.java b/src/main/java/com/gmail/nossr50/util/Skills.java index 241f9e98b..8c25f707d 100644 --- a/src/main/java/com/gmail/nossr50/util/Skills.java +++ b/src/main/java/com/gmail/nossr50/util/Skills.java @@ -152,7 +152,10 @@ public class Skills { if (PP.getToolPreparationMode(tool) && curTime - (PP.getToolPreparationATS(tool) * TIME_CONVERSION_FACTOR) >= FOUR_SECONDS) { PP.setToolPreparationMode(tool, false); - player.sendMessage(tool.getLowerTool()); + + if (Config.getInstance().getAbilityMessagesEnabled()) { + player.sendMessage(tool.getLowerTool()); + } } if (ability.getPermissions(player)) {