From dfacad20e23d07998fe629ab97f527d00f2ad941 Mon Sep 17 00:00:00 2001 From: ItzKatze <136186750+ItzKatze@users.noreply.github.com> Date: Sat, 6 Dec 2025 12:04:36 +0100 Subject: [PATCH] fix: error message when build in the hub --- .../event/actions/player/region/ActionRegionBlockPlace.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/type.skyblockgeneric/src/main/java/net/swofty/type/skyblockgeneric/event/actions/player/region/ActionRegionBlockPlace.java b/type.skyblockgeneric/src/main/java/net/swofty/type/skyblockgeneric/event/actions/player/region/ActionRegionBlockPlace.java index e9d508eca..ade6f02d5 100644 --- a/type.skyblockgeneric/src/main/java/net/swofty/type/skyblockgeneric/event/actions/player/region/ActionRegionBlockPlace.java +++ b/type.skyblockgeneric/src/main/java/net/swofty/type/skyblockgeneric/event/actions/player/region/ActionRegionBlockPlace.java @@ -22,7 +22,11 @@ public void run(PlayerBlockPlaceEvent event) { return; } - if (!HypixelConst.isIslandServer()) event.setCancelled(true); + if (!HypixelConst.isIslandServer()) { + event.setCancelled(true); + player.sendMessage("§cYou can't build here!"); + return; + } int islandSizePlus = (int) Math.floor((double) ISLAND_SIZE/2); int islandSizeMinus = -islandSizePlus;