Package ru.tehkode.permissions.commands

Examples of ru.tehkode.permissions.commands.Command


    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());
    }
  }
View Full Code Here

TOP

Related Classes of ru.tehkode.permissions.commands.Command

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.