* Fixes the funny station issue and prevents free respawns

* not in the sudoers file
This commit is contained in:
Moony
2021-11-26 04:03:29 -06:00
committed by GitHub
parent 7aa5818cd2
commit 85ea135ad4
2 changed files with 8 additions and 1 deletions

View File

@@ -43,6 +43,13 @@ namespace Content.Server.GameTicking.Commands
var ticker = EntitySystem.Get<GameTicker>();
var stationSystem = EntitySystem.Get<StationSystem>();
if (!ticker.PlayersInLobby.ContainsKey(player))
{
shell.WriteError($"{player.Name} not in the lobby. This incident will be reported.");
return;
}
if (ticker.RunLevel == GameRunLevel.PreRoundLobby)
{
shell.WriteLine("Round has not started.");