public void register() {
   ReflectCommand cmd = new ReflectCommand(this.command);
   if (this.alias != null) {
     cmd.setAliases(this.alias);
   }
   if (this.description != null) {
     cmd.setDescription(this.description);
   }
   if (this.usage != null) {
     cmd.setUsage(this.usage);
   }
   if (this.permMessage != null) {
     cmd.setPermissionMessage(this.permMessage);
   }
   if (!getCommandMap().register("", cmd)) {
     this.unRegisterBukkitCommand(Bukkit.getPluginCommand(cmd.getName()));
     getCommandMap().register("", cmd);
   }
   cmd.setExecutor(this);
 }
Exemple #2
0
 @Override
 public final void onEnable() {
   Bukkit.getPluginCommand("giveall").setExecutor(this);
   getLogger().info("Wurde hochgefahren!");
 }
Exemple #3
0
 public void setUsage(String usage) {
   Bukkit.getPluginCommand(identifier).setUsage(usage);
   this.usage = usage;
 }
Exemple #4
0
 public void setDescription(String description) {
   Bukkit.getPluginCommand(identifier).setDescription(description);
   this.description = description;
 }
Exemple #5
0
 public Relore() {
   Bukkit.getPluginCommand("relore").setUsage(Main.pr + "�relore <Itemlore ...>");
 }