Skip to content

Commit

Permalink
Add logs that provide session to player admin logs (space-wizards#28628)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowCommander committed Jun 5, 2024
1 parent adeed70 commit f933922
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Content.Server/Administration/Logs/AdminLogManager.Json.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ private void InitializeJson()
{
players.Add(actor.PlayerSession.UserId.UserId);
}
else if (value is SerializablePlayer player)
{
players.Add(player.Player.UserId.UserId);
}
}

return (JsonSerializer.SerializeToDocument(parsed, _jsonOptions), players);
Expand Down

0 comments on commit f933922

Please sign in to comment.