diff --git a/src/de/anura/core/events/PlayerInteract.java b/src/de/anura/core/events/PlayerInteract.java index b04f47c..5ad3708 100644 --- a/src/de/anura/core/events/PlayerInteract.java +++ b/src/de/anura/core/events/PlayerInteract.java @@ -93,7 +93,7 @@ public class PlayerInteract implements Listener { event.setCancelled(true); } } else if (block.getState().getData() instanceof Stairs) { - if (plugin.stairMode.contains(event.getPlayer()) && event.getAction().equals(Action.RIGHT_CLICK_BLOCK) && plugin.denySit.contains(event.getPlayer())) { + if (plugin.stairMode.contains(event.getPlayer()) && event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) { event.setCancelled(true); if (plugin.sittableBlocks.contains(block)) { plugin.sittableBlocks.remove(block); @@ -110,7 +110,7 @@ public class PlayerInteract implements Listener { int Z = block.getLocation().getBlockZ(); Core.getMySql().queryUpdate("INSERT INTO coreStairs(server,world,X,Y,Z) VALUES('" + plugin.getConfig().getString("server-name") + "','" + block.getWorld().getName() + "','" + X + "','" + Y + "','" + Z + "')"); } - } else if (plugin.getConfig().getBoolean("allow-stairs-sit") && event.getAction().equals(Action.RIGHT_CLICK_BLOCK) && plugin.sittableBlocks.contains(block)) { + } else if (plugin.getConfig().getBoolean("allow-stairs-sit") && event.getAction().equals(Action.RIGHT_CLICK_BLOCK) && plugin.sittableBlocks.contains(block) && !plugin.denySit.contains(event.getPlayer())) { if (plugin.sittingPlayer.containsKey(event.getPlayer())) { Core.statusMsg(event.getPlayer(), "sitting_already", false); event.setCancelled(true);