API/src/main/java/xyz/invisraidinq/rocketapi/api/command/impl/AdvancedCommand.java
/**
     * Handle the command tab completion
     *
     * @param sender The sender of the command
     * @param command The command sent
     * @param label The label sent by the sender
     * @param args The args of the command
     */
Handle the command tab completion
@param sender The sender of the command
@param command The command sent
@param label The label sent by the sender
@param args The args of the command
Handle the command tab completion @param sender The sender of the command @param command The command sent @param label The label sent by the sender @param args The args of the command
@Override
    public List<String> onTabComplete(CommandSender sender, Command command, String label, String[] args){
        List<String> results = new ArrayList<>();
        if(args.length < 2) {
            for (SubCommand subCommand : this.subCommands) {
                results.add(subCommand.getName());
            }
            if (results.isEmpty()) {
                return null;
            }
        } else {
            SubCommand argument = this.getSubCommand(args[0]);
            if (argument == null) {
                return results;
            }
            results = argument.onTabComplete(sender, command, label, args);
            if (results == null) {
                return null;
            }
        }
        return this.getCompletions(args, results);
    }
@ Override public List < String > onTabComplete ( CommandSender sender , Command command , String label , String [ ] args ) { List < String > results = new ArrayList < > ( ) ; if ( args . length < 2 ) { for ( SubCommand subCommand : this . subCommands ) { results . add ( subCommand . getName ( ) ) ; } if ( results . isEmpty ( ) ) { return null ; } } else { SubCommand argument = this . getSubCommand ( args [ 0 ] ) ; if ( argument == null ) { return results ; } results = argument . onTabComplete ( sender , command , label , args ) ; if ( results == null ) { return null ; } } return this . getCompletions ( args , results ) ; }
Handle the command tab completion
 @param sender The sender of the command
 @param command The command sent
 @param label The label sent by the sender
 @param args The args of the command
Handle the command tab completion @param sender The sender of the command @param command The command sent @param label The label sent by the sender @param args The args of the command