Add game rule to restart an empty server after 10 minutes (#2787)

* Add game rule to restart an empty server after 10 minutes

* Add missing localization for time running out
This commit is contained in:
DrSmugleaf
2020-12-21 11:59:41 +01:00
committed by GitHub
parent d9d168a324
commit 38dcc058c7
2 changed files with 96 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ namespace Content.Server.GameTicking.GameRules
private void TimerFired()
{
_gameTicker.EndRound("Time has run out!");
_gameTicker.EndRound(Loc.GetString("Time has run out!"));
_chatManager.DispatchServerAnnouncement(Loc.GetString("Restarting in {0} seconds.", (int) RoundEndDelay.TotalSeconds));