diff --git a/Content.Server/GameTicking/GameTicker.StatusShell.cs b/Content.Server/GameTicking/GameTicker.StatusShell.cs index d611795e88..7d16f2ede2 100644 --- a/Content.Server/GameTicking/GameTicker.StatusShell.cs +++ b/Content.Server/GameTicking/GameTicker.StatusShell.cs @@ -1,5 +1,6 @@ using System.Text.Json.Nodes; using Content.Shared.CCVar; +using Content.Shared.GameTicking; using Robust.Server.ServerStatus; using Robust.Shared.Configuration; @@ -22,7 +23,11 @@ namespace Content.Server.GameTicking /// For access to CVars in status responses. /// [Dependency] private readonly IConfigurationManager _cfg = default!; - + /// + /// For access to the round ID in status responses. + /// + [Dependency] private readonly SharedGameTicker _gameTicker = default!; + private void InitializeStatusShell() { IoCManager.Resolve().OnStatusRequest += GetStatusResponse; @@ -35,6 +40,7 @@ namespace Content.Server.GameTicking { jObject["name"] = _baseServer.ServerName; jObject["map"] = _gameMapManager.GetSelectedMap()?.MapName; + jObject["round_id"] = _gameTicker.RoundId; jObject["players"] = _playerManager.PlayerCount; jObject["soft_max_players"] = _cfg.GetCVar(CCVars.SoftMaxPlayers); jObject["run_level"] = (int) _runLevel;