fix...???!?!???!!

This commit is contained in:
9378062 2022-04-07 14:37:33 -04:00
parent 6e149d07c6
commit 1b7a06794b

View File

@ -57,6 +57,7 @@ public class BlockListener extends PlexListener
if (blockedPlayers.contains(event.getPlayer().getName())) if (blockedPlayers.contains(event.getPlayer().getName()))
{ {
event.setCancelled(true); event.setCancelled(true);
return;
} }
if (blockedBlocks.contains(block.getType())) if (blockedBlocks.contains(block.getType()))
@ -67,7 +68,7 @@ public class BlockListener extends PlexListener
if(SIGNS.contains(block.getType())) if(SIGNS.contains(block.getType()))
{ {
Sign sign = (Sign) block.getState(false); Sign sign = (Sign) block.getState();
boolean anythingChanged = false; boolean anythingChanged = false;
for (int i = 0; i < sign.lines().size(); i++) for (int i = 0; i < sign.lines().size(); i++)
{ {
@ -96,6 +97,7 @@ public class BlockListener extends PlexListener
if (blockedPlayers.contains(event.getPlayer().getName())) if (blockedPlayers.contains(event.getPlayer().getName()))
{ {
event.setCancelled(true); event.setCancelled(true);
return;
} }
} }
} }