From 7846f9577acd4ee386fd2492cfc6f85a8704834b Mon Sep 17 00:00:00 2001 From: Shyanne Date: Sat, 28 Dec 2024 15:16:50 -0500 Subject: [PATCH] forgot to set the event to cancelled --- .../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; }