Do not complete commands for which a player does not have permission

This commit is contained in:
chickeneer
2017-06-07 16:21:45 -05:00
parent 60892d566e
commit e254cbc2b3
@@ -401,7 +401,7 @@ public abstract class BaseCommand {
final List<String> cmds = new ArrayList<>();
if (search != null) {
if (search != null && this.testPermission(sender)) {
cmds.addAll(completeCommand(sender, search.cmd, Arrays.copyOfRange(args, search.argIndex, args.length), commandLabel));
}