Fixes "joingame" command allowing players to join before round s… (#595)

This commit is contained in:
ike709 2020-02-06 09:15:39 -06:00 committed by GitHub
parent 6a1d2124df
commit dea2be8321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -146,6 +146,12 @@ namespace Content.Server.GameTicking
}
var ticker = IoCManager.Resolve<IGameTicker>();
if (ticker.RunLevel == GameRunLevel.PreRoundLobby)
{
shell.SendText(player, "Round has not started.");
return;
}
ticker.MakeJoinGame(player);
}
}