diff --git a/src/com/cnaude/chairs/EventListener.java b/src/com/cnaude/chairs/EventListener.java index 0cc4612..90311d4 100644 --- a/src/com/cnaude/chairs/EventListener.java +++ b/src/com/cnaude/chairs/EventListener.java @@ -163,11 +163,16 @@ public class EventListener implements Listener { continue; } } - if (blockOkay - || (player.hasPermission("chairs.sit." + block.getTypeId() + ":" + block.getData()) && plugin.perItemPerms) - || (player.hasPermission("chairs.sit." + block.getType().toString() + ":" + block.getData()) && plugin.perItemPerms) - || (player.hasPermission("chairs.sit." + block.getTypeId()) && plugin.perItemPerms) - || (player.hasPermission("chairs.sit." + block.getType().toString()) && plugin.perItemPerms)) { + if (blockOkay || + (plugin.perItemPerms && + ( + player.hasPermission("chairs.sit." + block.getTypeId() + ":" + block.getData()) || + player.hasPermission("chairs.sit." + block.getType().toString() + ":" + block.getData()) || + player.hasPermission("chairs.sit." + block.getTypeId()) || + player.hasPermission("chairs.sit." + block.getType().toString()) + ) + ) + ) { if (block.getState().getData() instanceof Stairs) { stairs = (Stairs) block.getState().getData(); diff --git a/target/Chairs.jar b/target/Chairs.jar index 1b2910d..12b30c0 100644 Binary files a/target/Chairs.jar and b/target/Chairs.jar differ