Returning an empty list at the tab complete method doesnt seem to work (it displays a tiny space where the tab completion should be)
public class TabCompletion implements TabCompleter {
@Override
public List<String> onTabComplete(CommandSender sender, Command command, String label, String[] args) {
if(label.equalsIgnoreCase("afkTitle")){
if(args.length == 1) return Arrays.asList("title","subtitle");
else return Collections.singletonList("");
}
if(label.equalsIgnoreCase("afk"))
return Collections.singletonList("");
if(label.equalsIgnoreCase("afkTime"))
return Collections.singletonList("");
return null;
}
}