diff --git a/MCGalaxy_.csproj b/MCGalaxy_.csproj index 017876711..811a0239d 100644 --- a/MCGalaxy_.csproj +++ b/MCGalaxy_.csproj @@ -649,7 +649,6 @@ - Always diff --git a/Player/Entities.cs b/Player/Entities.cs index 60d157c81..26e132d67 100644 --- a/Player/Entities.cs +++ b/Player/Entities.cs @@ -172,14 +172,14 @@ namespace MCGalaxy { } - /// Returns whether the given player is able to see the other player (e.g. in /who). + /// Returns whether the given player is able to see the target player (e.g. in /who). public static bool CanSee(Player p, Player target) { if (p == null || !target.hidden || p == target) return true; if (target.otherRankHidden) return p.Rank >= target.oHideRank; - return p.Rank > target.group.Permission; + return p.Rank >= target.Rank; } - /// Returns whether the given player is able to see the other player as an in-game entity. + /// Returns whether the given player is able to see the target player as an in-game entity. public static bool CanSeeEntity(Player p, Player target) { bool mayBeHidden = target.hidden; mayBeHidden |= (target.Game.Referee || target.Game.Invisible) && Server.zombie.Running; @@ -189,7 +189,7 @@ namespace MCGalaxy { if (target.Game.Invisible && !p.Game.Referee && Server.zombie.Running) return false; if (target.otherRankHidden) return p.Rank >= target.oHideRank; - return p.Rank >= target.group.Permission; + return p.Rank >= target.Rank; } /// Updates the model of the entity with the specified id to all other players.