From 8ad7c9c281cb0aa40934365b3faeccb15dd1d6f5 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Thu, 3 Apr 2025 14:32:14 +1100 Subject: [PATCH] Add autocomplete to controlmob (#36234) Expensive for what it is just really annoying in debug to not have it. Worst case I just make it debug only and we don't add it for release. --- Content.Server/Administration/Commands/ControlMob.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Content.Server/Administration/Commands/ControlMob.cs b/Content.Server/Administration/Commands/ControlMob.cs index 8613fafeae..26cd83510b 100644 --- a/Content.Server/Administration/Commands/ControlMob.cs +++ b/Content.Server/Administration/Commands/ControlMob.cs @@ -43,5 +43,13 @@ namespace Content.Server.Administration.Commands _entities.System().ControlMob(player.UserId, target.Value); } + + public CompletionResult GetCompletion(IConsoleShell shell, string[] args) + { + if (args.Length != 1) + return CompletionResult.Empty; + + return CompletionResult.FromOptions(CompletionHelper.NetEntities(args[0], entManager: _entities)); + } } }