Fixed "lower tool" messages still being displayed even when ability

messages are disabled.
This commit is contained in:
GJ
2012-07-03 08:40:56 -04:00
parent 9f1b77a007
commit 96e70aa4d2
2 changed files with 5 additions and 1 deletions

View File

@ -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)) {