diff --git a/Content.Server/Communications/CommunicationsConsoleSystem.cs b/Content.Server/Communications/CommunicationsConsoleSystem.cs index 6b0b13c410..6b745c8cd9 100644 --- a/Content.Server/Communications/CommunicationsConsoleSystem.cs +++ b/Content.Server/Communications/CommunicationsConsoleSystem.cs @@ -303,6 +303,9 @@ namespace Content.Server.Communications }; _deviceNetworkSystem.QueuePacket(uid, null, payload, net.TransmitFrequency); + + if (message.Session.AttachedEntity != null) + _adminLogger.Add(LogType.DeviceNetwork, LogImpact.Low, $"{ToPrettyString(message.Session.AttachedEntity.Value):player} has sent the following broadcast: {message.Message:msg}"); } private void OnCallShuttleMessage(EntityUid uid, CommunicationsConsoleComponent comp, CommunicationsConsoleCallEmergencyShuttleMessage message) diff --git a/Content.Server/Materials/MaterialReclaimerSystem.cs b/Content.Server/Materials/MaterialReclaimerSystem.cs index c976543f7c..8920daf60d 100644 --- a/Content.Server/Materials/MaterialReclaimerSystem.cs +++ b/Content.Server/Materials/MaterialReclaimerSystem.cs @@ -19,6 +19,8 @@ using Robust.Server.GameObjects; using Robust.Shared.Player; using Robust.Shared.Utility; using System.Linq; +using Content.Server.Administration.Logs; +using Content.Shared.Database; namespace Content.Server.Materials; @@ -35,6 +37,7 @@ public sealed class MaterialReclaimerSystem : SharedMaterialReclaimerSystem [Dependency] private readonly PuddleSystem _puddle = default!; [Dependency] private readonly StackSystem _stack = default!; [Dependency] private readonly SharedMindSystem _mind = default!; + [Dependency] private readonly IAdminLogManager _adminLogger = default!; /// public override void Initialize() @@ -154,6 +157,7 @@ public sealed class MaterialReclaimerSystem : SharedMaterialReclaimerSystem if (CanGib(uid, item, component)) { + _adminLogger.Add(LogType.Gib, LogImpact.Extreme, $"{ToPrettyString(item):victim} was gibbed by {ToPrettyString(uid):entity} "); SpawnChemicalsFromComposition(uid, item, completion, false, component, xform); _body.GibBody(item, true); _appearance.SetData(uid, RecyclerVisuals.Bloody, true); diff --git a/Content.Shared.Database/LogType.cs b/Content.Shared.Database/LogType.cs index b3cdc60209..ece6607954 100644 --- a/Content.Shared.Database/LogType.cs +++ b/Content.Shared.Database/LogType.cs @@ -95,4 +95,5 @@ public enum LogType /// ChatRateLimited = 87, AtmosTemperatureChanged = 88, + DeviceNetwork = 89, }