From 5e5ca198df297c44169cedfaa4e3f4ab2e19d36e Mon Sep 17 00:00:00 2001 From: Shevchik Date: Sat, 14 Dec 2013 18:21:24 +0400 Subject: [PATCH] Do not allow player who sneak to sit --- src/com/cnaude/chairs/EventListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/cnaude/chairs/EventListener.java b/src/com/cnaude/chairs/EventListener.java index 89416ae..5f2d83d 100644 --- a/src/com/cnaude/chairs/EventListener.java +++ b/src/com/cnaude/chairs/EventListener.java @@ -92,6 +92,10 @@ public class EventListener implements Listener { WoodenStep wStep = null; boolean blockOkay = false; + if (player.isSneaking()) { + return false; + } + if (ignoreList.isIgnored(player.getName())) { return false; }