Beispiel #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;
 }
Beispiel #2
0
 protected final String getDisplayName(String name) {
   return plugin.getParticipantManager().getParticipant(name).getDisplayName();
 }
Beispiel #3
0
 protected final ConsoleCommandSender getConsoleSender() {
   return plugin.getServer().getConsoleSender();
 }
Beispiel #4
0
 protected final Player getPlayer(String name) {
   return plugin.getServer().getPlayer(name);
 }
Beispiel #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));
 }