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.
This commit is contained in:
metalgearsloth
2025-04-03 14:32:14 +11:00
committed by GitHub
parent 8007a4ebf7
commit 8ad7c9c281

View File

@@ -43,5 +43,13 @@ namespace Content.Server.Administration.Commands
_entities.System<MindSystem>().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));
}
}
}