How to unRegister a PluginCommand ?

Discussion in 'Plugin Development' started by Dark_Balor, Jul 25, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    @Dinnerbone @EvilSeph

    I'm looking for a way to unRegister a PluginCommand from Bukkit on-the-fly, without needing to edit the plugin.yml.

    I looked at the bukkit source code, I know that every command are registered by the SimpleCommandMap (method registerAll that is called when we enable a plugin). But I have 2 problem, first I can't get an instance of that class, second I don't see any unRegister function.

    I'm asking that, because I want to let the user add witch command they want to be deactivated and unRegister them from the CommandMap to allow other plugin to have the same command/alias
Thread Status:
Not open for further replies.

Share This Page