PluginManager unregister events?

Discussion in 'Plugin Development' started by DigitalTyrant, Apr 2, 2011.

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

    DigitalTyrant

    So PluginManager has a command, .disablePlugin(Plugin plugin), and it seems to run the onDisable() function of the specified plugin but it leaves the event hooks in tact. Is there a nice way to "unhook" these events so they cease to process when the plugin is said to be disabled?

    I use PluginManager.registerEvent(Event.Type type, Listener listener, Priority priority, Plugin plugin) to specify my handlers but there is not unregisterEvent function... is there another way to do this that I am missing?
     
Thread Status:
Not open for further replies.

Share This Page