Don't listen for /spec in GamePlayerManager unless the game is in progress

This commit is contained in:
ArcticZeroo 2017-11-05 16:47:24 -05:00 committed by Alexander Meech
parent 9d4b964e08
commit bacc1e0945

View File

@ -362,6 +362,10 @@ public class GamePlayerManager implements Listener
if (!event.getMessage().toLowerCase().startsWith("/spec"))
return;
if (!game.InProgress()) {
return;
}
event.setCancelled(true);
if (game.IsAlive(player) || !Manager.isSpectator(player))