Order when enabling plugins

Discussion in 'Plugin Development' started by homerbond005, Jan 13, 2012.

Thread Status:
Not open for further replies.
  1. Hi @ all!

    I have a problem with the order, the plugins are enabled. I want my plugin to be enabled at last. Is that possible? Or is there an event listener that is called when bukkit finished reloading/starting?

    HomerBond005
     
  2. Offline

    lishid

    If you need other plugins loaded, you can use depend and softdepend in your plugin.yml

    http://wiki.bukkit.org/Plugin_YAML
    Look for depend and softdepend in there.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 23, 2016
  3. I don't need dependencies. I just want an event listener or something like that that provides a method that is fired after bukkit has loaded all plugins. (after reloads or reboots)
     
  4. Offline

    theguynextdoor

    Why would you need the plugin to be enabled last may i ask?
     
  5. Offline

    lishid

    Use the bukkit scheduler to queue your method.
     
  6. http://jd.bukkit.org/doxygen/df/dfa...eduler.html#a97c2fca486d356d9f6711e768afca2dc
    The first one?

    I want to control other plugins. And the plugins have to be enable to be disabled. Or is there a way to prevent the pluginmanager from loading a plugin?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 23, 2016
  7. Offline

    lishid

  8. Why not softdepend on a non existent plugin? Then you should load at the last. ;)
     
  9. Okay I'll try it. Thanks :)

    No dependencies :D Just disabling other plugins.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 23, 2016
  10. @homerbond005: You misunderstood. Just add this to your plugin.yml:

    softdepend: [ApluginThatDontExistAndWillNeverDo]

    Now your plugin will load after all other plugins have been loaded... ;)
     
  11. Hmm. That seems logical. Will try it.

    Edit:
    Yeah. Thank you too. It works :p

    It works. Thanks a lot.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 23, 2016
Thread Status:
Not open for further replies.

Share This Page