plugin_unload / plugin_load
LadyCailinBot opened this issue ยท 3 comments
CMDHELPER-2973 - Reported by Lildirt
Events that fire for when any plugin is loaded into memory, or unloaded from memory. Hopefully, the plugin name could be grabbed from this event. Not sure if it's possible, since it seems a bit sketchy.
At the very least, something that determines when CommandHelper itself is being unloaded from memory, as that would allow me to tidy up some loose ends in my code.
I imagine someone has suggested a CH unload event by now, though.
Comment by PseudoKnight
Plugin enable/disable events are accessible in the Bukkit API, but it would only catch certain plugins on startup because your script would need to compile first. Plugins should rarely be disabled/enabled during normal server operation, but it'd be possible to detect those.
CH startup/shutdown events are suggested in another ticket. CMDHELPER-2640
For reference, CMDHELPER-2640 is #646
Okay, I'm going to call this one. As mentioned, plugin_load/unload doesn't make a whole lot of sense in this context. And in the case of extensions that use plugin APIs, they can handle that in the extension if really necessary. So I can't think of a good case for these events. As for the specific case of CH unload, which is useful, that request is addressed in #646 and probably the shutdown event.