From 1b7a06794b8b3ffb9a7346340744459bec3106ff Mon Sep 17 00:00:00 2001 From: 9378062 Date: Thu, 7 Apr 2022 14:37:33 -0400 Subject: [PATCH] fix...???!?!???!! --- src/main/java/dev/plex/listener/impl/BlockListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/dev/plex/listener/impl/BlockListener.java b/src/main/java/dev/plex/listener/impl/BlockListener.java index 8cb1ff7..f9539ff 100644 --- a/src/main/java/dev/plex/listener/impl/BlockListener.java +++ b/src/main/java/dev/plex/listener/impl/BlockListener.java @@ -57,6 +57,7 @@ public class BlockListener extends PlexListener if (blockedPlayers.contains(event.getPlayer().getName())) { event.setCancelled(true); + return; } if (blockedBlocks.contains(block.getType())) @@ -67,7 +68,7 @@ public class BlockListener extends PlexListener if(SIGNS.contains(block.getType())) { - Sign sign = (Sign) block.getState(false); + Sign sign = (Sign) block.getState(); boolean anythingChanged = false; for (int i = 0; i < sign.lines().size(); i++) { @@ -96,6 +97,7 @@ public class BlockListener extends PlexListener if (blockedPlayers.contains(event.getPlayer().getName())) { event.setCancelled(true); + return; } } }