for (int i = base; i < base + count; i++) {
if (i >= commands.size()) {
break;
}
Command command = commands.get(i).getMethodAnnotation();
String commandName = String.format("/%s %s", command.name(), command.syntax()).replace("<", ChatColor.BOLD.toString() + ChatColor.RED + "<").replace(">", ">" + ChatColor.RESET + ChatColor.GOLD.toString()).replace("[", ChatColor.BOLD.toString() + ChatColor.BLUE + "[").replace("]", "]" + ChatColor.RESET + ChatColor.GOLD.toString());
sender.sendMessage(ChatColor.GOLD + commandName);
sender.sendMessage(ChatColor.AQUA + " " + command.description());
}
}