mirror of
https://github.com/aikar/commands.git
synced 2026-07-03 03:00:50 +00:00
Forgot the ! - fixes breaking command completion
This commit is contained in:
@@ -423,7 +423,7 @@ public abstract class BaseCommand {
|
||||
}
|
||||
|
||||
private List<String> completeCommand(CommandIssuer sender, RegisteredCommand cmd, String[] args, String commandLabel) {
|
||||
if (this.testPermission(sender) ||args.length > cmd.requiredResolvers + cmd.optionalResolvers || args.length == 0
|
||||
if (!this.testPermission(sender) ||args.length > cmd.requiredResolvers + cmd.optionalResolvers || args.length == 0
|
||||
|| cmd.complete == null) {
|
||||
return ImmutableList.of();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user