Let staff use /stats on other vanished staff
This commit is contained in:
parent
8000c79f5d
commit
3ce8cf040c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue