Abilities no longer activate if you don't have permission

This commit is contained in:
nossr50
2019-02-04 22:04:50 -08:00
parent 9a428332a9
commit 4ea5432561
6 changed files with 7 additions and 6 deletions

View File

@ -38,7 +38,8 @@ public class WoodcuttingManager extends SkillManager {
}
public boolean canUseTreeFeller(ItemStack heldItem) {
return mcMMOPlayer.getAbilityMode(SuperAbilityType.TREE_FELLER) && Permissions.treeFeller(getPlayer()) && ItemUtils.isAxe(heldItem);
return mcMMOPlayer.getAbilityMode(SuperAbilityType.TREE_FELLER)
&& ItemUtils.isAxe(heldItem);
}
protected boolean canGetDoubleDrops() {