mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-01-25 09:31:56 +01:00
Updated help command
This commit is contained in:
parent
984bf01c03
commit
2d9594c8c5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user