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:
parent
8007a4ebf7
commit
8ad7c9c281
1 changed files with 8 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue