Whoops, wrong if
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user