mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-02-27 17:51:50 +01:00
got the tab complete index wrong
This commit is contained in:
parent
e6a515201d
commit
a762b58663
@ -96,7 +96,7 @@ public class CommandWithSubCommands implements CommandTemplate {
|
||||
|
||||
@Override
|
||||
public List<String> onTabComplete(CommandSenderContainer sender, String[] args) {
|
||||
if(args.length > 0) {
|
||||
if(args.length > 1) {
|
||||
for (String subCommandName : this.subCommandRegistry.getSubCommands()) {
|
||||
if (subCommandName.equalsIgnoreCase(args[0])) {
|
||||
SubCommand subCommand = this.getSubCommand(subCommandName);
|
||||
|
Loading…
Reference in New Issue
Block a user