From 64c4affe3f427cacb65e80610d87b17f3a70ac14 Mon Sep 17 00:00:00 2001 From: Christian Koop Date: Fri, 18 Aug 2023 10:45:29 +0200 Subject: [PATCH] Fixes error when setting island to non-public while visitors are on it --- src/main/java/com/craftaro/skyblock/island/IslandManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/craftaro/skyblock/island/IslandManager.java b/src/main/java/com/craftaro/skyblock/island/IslandManager.java index c0aba3cd..61a5f542 100644 --- a/src/main/java/com/craftaro/skyblock/island/IslandManager.java +++ b/src/main/java/com/craftaro/skyblock/island/IslandManager.java @@ -1311,7 +1311,7 @@ public class IslandManager { if (!island.isCoopPlayer(visitor) && !island.isPlayerWhitelisted(visitor)) { Player targetPlayer = Bukkit.getServer().getPlayer(visitor); LocationUtil.teleportPlayerToSpawn(targetPlayer); - messageManager.sendMessage(targetPlayer, configLoad.getString("Island.Visit.Whitelisted.Message").replace("%player", islandOwnerPlayerName)); // TODO + messageManager.sendMessage(targetPlayer, configLoad.getString("Command.Island.Visit.Whitelisted.Message").replace("%player", islandOwnerPlayerName)); // TODO } } }