1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Load plugin

Discussion in 'Development' started by #A6543, Jun 26, 2017.

  1. #A6543

    #A6543 Zombie

    Messages:
    267
    I want to load a plugin before all other plugins but I don't really know how.

    Thats what I already tried:
    PHP:
    //In plugin.yml
    dependPluginName
     
  2. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    Try setting the names in a-z(order)
    Core(this loads first)
    CombatLgger
    world border(loads last)

    Am pretty sure this was suggested by jayswn
     
  3. Add this to your plugin.yml
    load: STARTUP
     
    mal0ne_23 likes this.
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Using alphabetical order is not reliable. This depends on the filesystem, and if the filesystem does not sort files in a directory alphabetically, this won't work. Moreover, using a mix of plugin loaders will cause this to fail working (e.g. directory plugins + phar plugins).
    Have a look at the "loadbefore" attribute in the plugin.yml schema.
     
    #A6543 likes this.
  5. #A6543

    #A6543 Zombie

    Messages:
    267
    Thank you!
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.