From 3ce8cf040ceb863586bde6d4bd0b2df97f55a77b Mon Sep 17 00:00:00 2001 From: ArcticZeroo Date: Tue, 24 Oct 2017 18:44:52 -0400 Subject: [PATCH] Let staff use /stats on other vanished staff --- .../src/mineplex/core/achievement/command/StatsCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/achievement/command/StatsCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/achievement/command/StatsCommand.java index db6d39fd5..6e8060176 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/achievement/command/StatsCommand.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/achievement/command/StatsCommand.java @@ -34,7 +34,8 @@ public class StatsCommand extends CommandBase } // Don't allow players to use this command on vanished staff members - if (Plugin.getIncognito() != null && Plugin.getIncognito().Get(target).Status) + // Staff can use it on other vanished staff, though. + if (Plugin.getIncognito() != null && Plugin.getIncognito().Get(target).Status && !Plugin.getClientManager().Get(caller).hasPermission(AchievementManager.Perm.SEE_FULL_STATS)) { UtilPlayer.message(caller, F.main("Online Player Search", "" + C.mCount + "0" + C.mBody + " matches for [" + C.mElem