mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
BaseCommand should only fulfill tab complete of its own scope
This commit is contained in:
@@ -643,6 +643,9 @@ public abstract class BaseCommand {
|
||||
final List<String> cmds = new ArrayList<>();
|
||||
if (search != null) {
|
||||
for (RegisteredCommand<?> command : search.commands) {
|
||||
if (command.scope != this) {
|
||||
continue;
|
||||
}
|
||||
cmds.addAll(completeCommand(issuer, command, search.args, commandLabel, isAsync));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user