예제 #1
0
 public Command(String name) {
   super(name);
   this.plugin = TitanChat.getInstance();
   this.aliases = new String[0];
   this.briefDesc = "";
   this.fullDesc = "";
   this.usage = "";
   this.permission = "";
   this.maxArgs = 0;
   this.minArgs = 0;
 }
예제 #2
0
 protected final String getDisplayName(String name) {
   return plugin.getParticipantManager().getParticipant(name).getDisplayName();
 }
예제 #3
0
 protected final ConsoleCommandSender getConsoleSender() {
   return plugin.getServer().getConsoleSender();
 }
예제 #4
0
 protected final Player getPlayer(String name) {
   return plugin.getServer().getPlayer(name);
 }
예제 #5
0
 /**
  * Gets the format
  *
  * @return The format
  */
 public static String getFormat() {
   FileConfiguration config = TitanChat.getInstance().getConfig();
   return colourise(config.getString("formatting.chat", CHAT_FORMAT));
 }