diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandbreak.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandbreak.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java b/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java index 12b25a14a..3d07107ea 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java @@ -1,6 +1,7 @@ package com.earth2me.essentials.commands; import com.earth2me.essentials.api.IUser; +import com.earth2me.essentials.perm.Permissions; import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.event.block.BlockBreakEvent; @@ -21,7 +22,7 @@ public class Commandbreak extends EssentialsCommand { throw new NoChargeException(); } - if (block.getType() == Material.BEDROCK && !user.isAuthorized("essentials.break.bedrock")) + if (block.getType() == Material.BEDROCK && !Permissions.BREAK_BEDROCK.isAuthorized(user)) { throw new Exception("You are not allowed to destroy bedrock."); //TODO: Translation } |