mirror of
https://github.com/aikar/commands.git
synced 2026-06-06 08:52:17 +00:00
Process unknown command completions - fixes #44
This commit is contained in:
@@ -412,6 +412,8 @@ public abstract class BaseCommand {
|
||||
|
||||
if (search != null) {
|
||||
cmds.addAll(completeCommand(issuer, search.cmd, Arrays.copyOfRange(args, search.argIndex, args.length), commandLabel));
|
||||
} else if (subCommands.get(UNKNOWN).size() == 1) {
|
||||
cmds.addAll(completeCommand(issuer, Iterables.getOnlyElement(subCommands.get(UNKNOWN)), args, commandLabel));
|
||||
}
|
||||
|
||||
for (Map.Entry<String, RegisteredCommand> entry : subCommands.entries()) {
|
||||
|
||||
Reference in New Issue
Block a user