Don't let vanished staff use /spec (the one in pregame lobbies)

This commit is contained in:
ArcticZeroo 2017-11-05 16:32:22 -05:00 committed by Alexander Meech
parent 4ac9fd1b5d
commit 9d4b964e08
1 changed files with 5 additions and 0 deletions

View File

@ -1462,6 +1462,11 @@ public class ArcadeManager extends MiniPlugin implements IRelation
return;
}
if (isVanished(event.getPlayer())) {
UtilPlayer.message(event.getPlayer(), F.main("Game", "You cannot toggle spectator while vanished."));
return;
}
if (!_specList.remove(event.getPlayer()))
{
if (_game != null && !_game.SpectatorAllowed)