From da6bf27c779ceeaa2b014b01ab7440a6b055059c Mon Sep 17 00:00:00 2001 From: Sarah Date: Mon, 2 Nov 2015 04:32:07 +0100 Subject: [PATCH] Staff with a higher rank can see lower rank and same ranked vanished staff. --- .../src/mineplex/hub/modules/HubVisibilityManager.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.Hub/src/mineplex/hub/modules/HubVisibilityManager.java b/Plugins/Mineplex.Hub/src/mineplex/hub/modules/HubVisibilityManager.java index 7c43be8c9..fef4e03f5 100644 --- a/Plugins/Mineplex.Hub/src/mineplex/hub/modules/HubVisibilityManager.java +++ b/Plugins/Mineplex.Hub/src/mineplex/hub/modules/HubVisibilityManager.java @@ -65,14 +65,19 @@ public class HubVisibilityManager extends MiniPlugin { boolean hideMe = Manager.GetTutorial().InTutorial(player) || UtilMath.offset2d(player.getLocation(), Manager.GetSpawn()) == 0 || - Manager.getPreferences().Get(player).Invisibility || + // Manager.getPreferences().Get(player).Invisibility || _hiddenPlayers.contains(player); for (Player other : UtilServer.getPlayers()) { if (player.equals(other)) continue; - + + if(Manager.getPreferences().Get(player).Invisibility && + !Manager.GetClients().Get(other).GetRank().has(Manager.GetClients().Get(player).GetRank())) + { + hideMe = true; + } if (hideMe || !Manager.getPreferences().Get(other).ShowPlayers || Manager.GetTutorial().InTutorial(other))