]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add map info to status HTTP API (#21089)
authorMorb <14136326+Morb0@users.noreply.github.com>
Mon, 6 Nov 2023 04:03:36 +0000 (07:03 +0300)
committerGitHub <noreply@github.com>
Mon, 6 Nov 2023 04:03:36 +0000 (21:03 -0700)
Content.Server/GameTicking/GameTicker.StatusShell.cs

index e2da4d09950ef31d8ca48a42447f6e63f8362436..d611795e88a1033d763e6b3e5717468d422f9485 100644 (file)
@@ -34,6 +34,7 @@ namespace Content.Server.GameTicking
             lock (_statusShellLock)
             {
                 jObject["name"] = _baseServer.ServerName;
+                jObject["map"] = _gameMapManager.GetSelectedMap()?.MapName;
                 jObject["players"] = _playerManager.PlayerCount;
                 jObject["soft_max_players"] = _cfg.GetCVar(CCVars.SoftMaxPlayers);
                 jObject["run_level"] = (int) _runLevel;