diff --git a/Content.Server/Administration/Commands/PlayGlobalSoundCommand.cs b/Content.Server/Administration/Commands/PlayGlobalSoundCommand.cs index f1a5a57aa65..724cf1d1420 100644 --- a/Content.Server/Administration/Commands/PlayGlobalSoundCommand.cs +++ b/Content.Server/Administration/Commands/PlayGlobalSoundCommand.cs @@ -7,6 +7,8 @@ using Robust.Shared.ContentPack; using Robust.Shared.Player; using Robust.Shared.Prototypes; +using Content.Server.Administration.Logs; +using Content.Shared.Database; namespace Content.Server.Administration.Commands; @@ -17,6 +19,7 @@ public sealed class PlayGlobalSoundCommand : IConsoleCommand [Dependency] private readonly IPlayerManager _playerManager = default!; [Dependency] private readonly IPrototypeManager _protoManager = default!; [Dependency] private readonly IResourceManager _res = default!; + [Dependency] private readonly IAdminLogManager _adminLogger = default!; public string Command => "playglobalsound"; public string Description => Loc.GetString("play-global-sound-command-description"); @@ -89,6 +92,13 @@ public void Execute(IConsoleShell shell, string argStr, string[] args) audio = audio.AddVolume(-8); _entManager.System().PlayAdminGlobal(filter, args[0], audio, replay); + // ADT-Tweak-start: Добавил логирование на playglobalsound + _adminLogger.Add( + LogType.AdminMessage, + LogImpact.Low, + $"[АДМИНАБУЗ] {shell.Player?.Name} used the command 'playglobalsound' with path '{args[0]}'." + ); + // ADT-Tweak-end } public CompletionResult GetCompletion(IConsoleShell shell, string[] args) diff --git a/Content.Server/Tips/TipsSystem.cs b/Content.Server/Tips/TipsSystem.cs index 3864d9160cd..2f909b64e3e 100644 --- a/Content.Server/Tips/TipsSystem.cs +++ b/Content.Server/Tips/TipsSystem.cs @@ -89,7 +89,7 @@ private void SendTippy(IConsoleShell shell, string argstr, string[] args) _adminLogger.Add( LogType.AdminMessage, LogImpact.Low, - $"[АДМИНАБУЗ] {shell.Player?.Name} used the command tippy or tip." + $"[АДМИНАБУЗ] {shell.Player?.Name} used the command tippy or tip. EntityPrototype: {args[2]}" ); // ADT-Tweak-End ActorComponent? actor = null;