Fixes error when setting island to non-public while visitors are on it

This commit is contained in:
Christian Koop 2023-08-18 10:45:29 +02:00
parent 25e401826c
commit 64c4affe3f
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3

View File

@ -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
}
}
}