Hi. I have a plugin (2) that depends on another plugin (1), and when the server closes, 1 disables first, and 2 needs it to handle things for players correctly. How can I fix this?
This didn't work. [21:13:20] [Server thread/INFO]: Disabling Core v1.5.0 [21:13:20] [Server thread/INFO]: Disabling KitPvP v1.0.0 Core still disables before the KitPvP plugin. KitPvP depends on Core. plugin.yml:
A very poor workaround would be to make the dependant plugin's name start with a letter closer to the start of the alphabet than the independent one.
I think plugins disable according to the order in which they were enabled. If that's the case, the following in plugin.yml should make the plugin disable last PHP: load: POSTWORLD
This is the default value if not specified... It's impractical to say "load my plugin last". What if two plugins ask for being loaded the last? It's probably a bug that plugins aren't disabled according to dependency.