From 6d3071d626bf1d032e58208779be58e192bcf1dc Mon Sep 17 00:00:00 2001 From: Shevchik Date: Fri, 7 Mar 2014 22:31:28 +0400 Subject: [PATCH] Remove permissions based sit --- .../cnaude/chairs/listeners/TrySitEventListener.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/com/cnaude/chairs/listeners/TrySitEventListener.java b/src/com/cnaude/chairs/listeners/TrySitEventListener.java index 5439f3c..e5b28ac 100644 --- a/src/com/cnaude/chairs/listeners/TrySitEventListener.java +++ b/src/com/cnaude/chairs/listeners/TrySitEventListener.java @@ -92,14 +92,8 @@ public class TrySitEventListener implements Listener { WoodenStep wStep = null; // Check for block is chair - if ( - isValidChair(block) || - ( - !player.hasPermission("chairs.sit.antiopcheck") && - player.hasPermission("chairs.sit." + block.getType().toString()) - ) - ) - { + if (isValidChair(block)) { + if (block.getState().getData() instanceof Stairs) { stairs = (Stairs) block.getState().getData(); } else if (block.getState().getData() instanceof Step) {