From 4508f3c6f919628c4f3bb1ca7b460ef5f9b67c29 Mon Sep 17 00:00:00 2001 From: Shyanne Date: Sat, 28 Dec 2024 15:26:28 -0500 Subject: [PATCH] forgot to set the event to cancelled (#931) --- .../iridiumskyblock/listeners/PlayerInteractListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/iridium/iridiumskyblock/listeners/PlayerInteractListener.java b/src/main/java/com/iridium/iridiumskyblock/listeners/PlayerInteractListener.java index 9a1d7b40e..7b8fe299b 100644 --- a/src/main/java/com/iridium/iridiumskyblock/listeners/PlayerInteractListener.java +++ b/src/main/java/com/iridium/iridiumskyblock/listeners/PlayerInteractListener.java @@ -48,6 +48,7 @@ public void onClick(PlayerInteractEvent event) { player.sendMessage(StringUtils.color(IridiumSkyblock.getInstance().getMessages().cannotBreakBlocks .replace("%prefix%", IridiumSkyblock.getInstance().getConfiguration().prefix) )); + event.setCancelled(true); return; }