Let staff use /stats on other vanished staff

This commit is contained in:
ArcticZeroo 2017-10-24 18:44:52 -04:00 committed by Alexander Meech
parent 8000c79f5d
commit 3ce8cf040c
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@ public class StatsCommand extends CommandBase<AchievementManager>
} }
// Don't allow players to use this command on vanished staff members // 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, UtilPlayer.message(caller,
F.main("Online Player Search", "" + C.mCount + "0" + C.mBody + " matches for [" + C.mElem F.main("Online Player Search", "" + C.mCount + "0" + C.mBody + " matches for [" + C.mElem