You'll need either Tree Feller or Skull Splitter permission to ready tool

This commit is contained in:
nossr50 2012-04-04 16:20:15 -07:00
parent bf361f6824
commit 9ef68d226a

View File

@ -103,7 +103,8 @@ public class Skills {
* Basically the tool always needs to ready and we check to see if the cooldown is over when the user takes action * Basically the tool always needs to ready and we check to see if the cooldown is over when the user takes action
*/ */
if (skill == SkillType.WOODCUTTING || skill == SkillType.AXES) { if (skill == SkillType.WOODCUTTING || skill == SkillType.AXES) {
if (tool.inHand(inHand) && !PP.getToolPreparationMode(tool)) { if ((mcPermissions.getInstance().treeFeller(player) || mcPermissions.getInstance().skullSplitter(player)) &&
tool.inHand(inHand) && !PP.getToolPreparationMode(tool)) {
if (LoadProperties.enableAbilityMessages) { if (LoadProperties.enableAbilityMessages) {
player.sendMessage(tool.getRaiseTool()); player.sendMessage(tool.getRaiseTool());
} }