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