From 2d9594c8c56fb6bbe0ee621c6cbd729b65b59ba2 Mon Sep 17 00:00:00 2001 From: sekwah41 Date: Thu, 1 Feb 2018 22:18:17 +0000 Subject: [PATCH] Updated help command --- .../core/commands/CommandWithSubCommands.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/com/sekwah/advancedportals/core/commands/CommandWithSubCommands.java b/src/com/sekwah/advancedportals/core/commands/CommandWithSubCommands.java index f10deb2d..f0a359f1 100644 --- a/src/com/sekwah/advancedportals/core/commands/CommandWithSubCommands.java +++ b/src/com/sekwah/advancedportals/core/commands/CommandWithSubCommands.java @@ -131,11 +131,9 @@ public class CommandWithSubCommands implements CommandTemplate { else { List 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) {