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