diff --git a/src/main/java/com/gmail/nossr50/datatypes/skills/AbilityType.java b/src/main/java/com/gmail/nossr50/datatypes/skills/AbilityType.java index aff8f9007..8e5e80905 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/skills/AbilityType.java +++ b/src/main/java/com/gmail/nossr50/datatypes/skills/AbilityType.java @@ -258,8 +258,15 @@ public class AbilityType { * @return true if the player has permissions, false otherwise */ public boolean getPermissions(Player player) { + String skill; + if(this==blastMining) { + skill = "mining"; + } + else { + skill = SkillType.byAbility(this).getName().toLowerCase(); + } return player.hasPermission("mcmmo.ability." - + SkillType.byAbility(this).getName().toLowerCase() + + skill + "." + name.replace("_", "").toLowerCase()); }