]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add log when a player starts observing. (#26091)
authornikthechampiongr <32041239+nikthechampiongr@users.noreply.github.com>
Wed, 13 Mar 2024 22:46:41 +0000 (00:46 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Mar 2024 22:46:41 +0000 (09:46 +1100)
Content.Server/GameTicking/GameTicker.Spawning.cs

index 882d5e37d8dfe64803afa377fed7ad844ec9bb60..65de36cf80ee1d20a3ef0fe286d156cc0c4c844d 100644 (file)
@@ -338,6 +338,7 @@ namespace Content.Server.GameTicking
             _metaData.SetEntityName(ghost, name);
             _ghost.SetCanReturnToBody(ghost, false);
             _mind.TransferTo(mind.Value, ghost);
+            _adminLogger.Add(LogType.LateJoin, LogImpact.Low, $"{player.Name} late joined the round as an Observer with {ToPrettyString(ghost):entity}.");
         }
 
         #region Mob Spawning Helpers