Skip to content

Commit

Permalink
Cherry-picked commit 65960fa from space-wizards/space-station-14/master
Browse files Browse the repository at this point in the history
  • Loading branch information
SimpleStation14 authored and metalgearsloth committed Mar 24, 2024
1 parent 3bf08c7 commit f7fdf84
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Robust.Shared.Console;
using Robust.Shared.ContentPack;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;

namespace Content.Server.Administration.Commands;

Expand All @@ -14,6 +15,7 @@ public sealed class PlayGlobalSoundCommand : IConsoleCommand
{
[Dependency] private readonly IEntityManager _entManager = default!;
[Dependency] private readonly IPlayerManager _playerManager = default!;
[Dependency] private readonly IPrototypeManager _protoManager = default!;
[Dependency] private readonly IResourceManager _res = default!;

public string Command => "playglobalsound";
Expand Down Expand Up @@ -95,7 +97,7 @@ public CompletionResult GetCompletion(IConsoleShell shell, string[] args)
{
var hint = Loc.GetString("play-global-sound-command-arg-path");

var options = CompletionHelper.ContentFilePath(args[0], _res);
var options = CompletionHelper.AudioFilePath(args[0], _protoManager, _res);

return CompletionResult.FromHintOptions(options, hint);
}
Expand Down

0 comments on commit f7fdf84

Please sign in to comment.