diff --git a/src/main/java/ru/tehkode/modifyworld/ModifyworldListener.java b/src/main/java/ru/tehkode/modifyworld/ModifyworldListener.java index b790149..af4578b 100644 --- a/src/main/java/ru/tehkode/modifyworld/ModifyworldListener.java +++ b/src/main/java/ru/tehkode/modifyworld/ModifyworldListener.java @@ -95,7 +95,7 @@ public abstract class ModifyworldListener implements Listener { } private String getMaterialPermission(Material type, byte metadata) { - return getMaterialPermission(type) + (metadata > 0 ? ":" + metadata : ""); + return getMaterialPermission(type) + (checkMetadata && metadata > 0 ? ":" + metadata : ""); } private String getBlockPermission(Block block) {