Prevent cloaked players from having their visibility reset

This commit is contained in:
Nate Mortensen 2016-11-01 09:48:46 -06:00 committed by Shaun Bennett
parent e3b701f948
commit 0607355ee0
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public class GamePlayerManager implements Listener
} }
for (Player player : Manager.GetGame().GetPlayers(true)) for (Player player : Manager.GetGame().GetPlayers(true))
{ {
if (!Manager.GetCondition().HasCondition(player, ConditionType.INVISIBILITY) && Manager.GetGame().IsAlive(player) && !UtilPlayer.isSpectator(player)) if (!Manager.GetCondition().HasCondition(player, ConditionType.INVISIBILITY) && !Manager.GetCondition().HasCondition(player, ConditionType.CLOAK) && Manager.GetGame().IsAlive(player) && !UtilPlayer.isSpectator(player))
{ {
for (Player viewer : Bukkit.getOnlinePlayers()) for (Player viewer : Bukkit.getOnlinePlayers())
{ {