]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add server name into the replay final (#25564)
authorVasilis <vasilis@pikachu.systems>
Sun, 25 Feb 2024 22:44:05 +0000 (23:44 +0100)
committerGitHub <noreply@github.com>
Sun, 25 Feb 2024 22:44:05 +0000 (23:44 +0100)
Turns out this is not what serverid was for... i guess you can find server familys with this so im not gonna remove it. Best we get for server name is the admin logs server name.

Content.Server/GameTicking/GameTicker.Replays.cs

index e09e07b86737c68b2f8fd5d8512eb3ceef7df906..9109fbf96a286d6c9c969ac3c334b8664bcd63dc 100644 (file)
@@ -128,6 +128,7 @@ public sealed partial class GameTicker
         metadata["roundEndPlayers"] = _serialman.WriteValue(_replayRoundPlayerInfo);
         metadata["roundEndText"] = new ValueDataNode(_replayRoundText);
         metadata["server_id"] = new ValueDataNode(_configurationManager.GetCVar(CCVars.ServerId));
+        metadata["server_name"] = new ValueDataNode(_configurationManager.GetCVar(CCVars.AdminLogsServerName));
         metadata["roundId"] = new ValueDataNode(RoundId.ToString());
     }