mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-25 19:56:28 +01:00
Fixes error when setting island to non-public while visitors are on it
This commit is contained in:
parent
25e401826c
commit
64c4affe3f
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user