Don't listen for /spec in GamePlayerManager unless the game is in progress
This commit is contained in:
parent
9d4b964e08
commit
bacc1e0945
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user