From 9d4b964e081c746547fb5ff44658464fa03624af Mon Sep 17 00:00:00 2001 From: ArcticZeroo Date: Sun, 5 Nov 2017 16:32:22 -0500 Subject: [PATCH] Don't let vanished staff use /spec (the one in pregame lobbies) --- .../src/nautilus/game/arcade/ArcadeManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/ArcadeManager.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/ArcadeManager.java index 2ec74d347..a39af428d 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/ArcadeManager.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/ArcadeManager.java @@ -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)