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


    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


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


    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


Thread Status:
Not open for further replies.

Share This Page