瀏覽代碼

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

nossr50 13 年之前
父節點
當前提交
9ef68d226a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/java/com/gmail/nossr50/skills/Skills.java

+ 2 - 1
src/main/java/com/gmail/nossr50/skills/Skills.java

@@ -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
          */
         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) {
                     player.sendMessage(tool.getRaiseTool());
                 }