Can't get WorldGuard's instance @ onenable

Discussion in 'Plugin Development' started by hqSparx, Jan 25, 2012.

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

    hqSparx

    Hello, I'm trying to get WorldGuard's instance in my plugin, after adding
    to my plugin's OnEnable event, im getting "NullPointerException" because WG is not yet initialized at this point. Is there a way to load my plugin AFTER WorldGuard or something?
     
  2. Offline

    AbeJ

    Yes. Add WorldGuard as a soft dependency in your plugin.yml.
     
  3. Offline

    gyroninja

    You want a hard one actually cause a soft one would still give a NPE if you don't have WG add "depend: [worldguard]" (put the plugin name you want to load in the brackets)
     
  4. Offline

    hqSparx

    thanks
     
Thread Status:
Not open for further replies.

Share This Page