From 83e4f447a88928b11277c3d0c4b9469baa9ff9cb Mon Sep 17 00:00:00 2001 From: Shevchik Date: Fri, 13 Dec 2013 13:09:27 +0400 Subject: [PATCH] Add workaround for pex and op --- src/com/cnaude/chairs/EventListener.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/cnaude/chairs/EventListener.java b/src/com/cnaude/chairs/EventListener.java index 0b2f3a7..77ae629 100644 --- a/src/com/cnaude/chairs/EventListener.java +++ b/src/com/cnaude/chairs/EventListener.java @@ -116,7 +116,10 @@ public class EventListener implements Listener { continue; } } - if (player.hasPermission("chairs.sit." + block.getType().toString())) { + if ( + !player.hasPermission("chairs.sit.antiopcheck") && + player.hasPermission("chairs.sit." + block.getType().toString()) + ) { blockOkay = true; } if (blockOkay) {