Advertisement
Xephyrr

qwqr

Jul 28th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. public static PLUGIN_NAME instance;
  2. Then in your onEnable() Make sure it's the first line in there! -
  3. Code (Text):
  4. instance=this;
  5. So now in all of your classes, you can use PLUGIN_NAME.instance.getConfig()
  6.  
  7. If you ever need to get config's of another plugin (Like when i was shrinking my world border and needed to check if there were player homes that would be beyond the new one), you can use this method -
  8. Code (Text):
  9. Bukkit.getPluginManager().getPlugin("PLUGIN_NAME").getConfig()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement