Add map info to status HTTP API (#21089)
This commit is contained in:
@@ -34,6 +34,7 @@ namespace Content.Server.GameTicking
|
|||||||
lock (_statusShellLock)
|
lock (_statusShellLock)
|
||||||
{
|
{
|
||||||
jObject["name"] = _baseServer.ServerName;
|
jObject["name"] = _baseServer.ServerName;
|
||||||
|
jObject["map"] = _gameMapManager.GetSelectedMap()?.MapName;
|
||||||
jObject["players"] = _playerManager.PlayerCount;
|
jObject["players"] = _playerManager.PlayerCount;
|
||||||
jObject["soft_max_players"] = _cfg.GetCVar(CCVars.SoftMaxPlayers);
|
jObject["soft_max_players"] = _cfg.GetCVar(CCVars.SoftMaxPlayers);
|
||||||
jObject["run_level"] = (int) _runLevel;
|
jObject["run_level"] = (int) _runLevel;
|
||||||
|
|||||||
Reference in New Issue
Block a user