Updated help command

This commit is contained in:
sekwah41 2018-02-01 22:18:17 +00:00 committed by Sekwah
parent 984bf01c03
commit 2d9594c8c5

View File

@ -131,11 +131,9 @@ public class CommandWithSubCommands implements CommandTemplate {
else {
List<String> allowedCommands = new ArrayList<>();
for (String subCommandName : this.subCommandRegistry.getSubCommands()) {
if (subCommandName.equalsIgnoreCase(args[0])) {
SubCommand subCommand = this.getSubCommand(subCommandName);
if(subCommand.hasPermission(sender)) {
allowedCommands.add(subCommandName);
}
SubCommand subCommand = this.getSubCommand(subCommandName);
if(subCommand.hasPermission(sender)) {
allowedCommands.add(subCommandName);
}
}
if(args.length == 1) {