Skip to content

Commit

Permalink
forgot to set the event to cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
sh0inx committed Dec 28, 2024
1 parent 50b4862 commit 7846f95
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7846f95

Please sign in to comment.