Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 @Override
 public final void onEnable() {
   Bukkit.getPluginCommand("giveall").setExecutor(this);
   getLogger().info("Wurde hochgefahren!");
 }
Ejemplo n.º 3
0
 public void setUsage(String usage) {
   Bukkit.getPluginCommand(identifier).setUsage(usage);
   this.usage = usage;
 }
Ejemplo n.º 4
0
 public void setDescription(String description) {
   Bukkit.getPluginCommand(identifier).setDescription(description);
   this.description = description;
 }
Ejemplo n.º 5
0
 public Relore() {
   Bukkit.getPluginCommand("relore").setUsage(Main.pr + "�relore <Itemlore ...>");
 }