Don't let vanished staff use /spec (the one in pregame lobbies)
This commit is contained in:
parent
4ac9fd1b5d
commit
9d4b964e08
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user