Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static PLUGIN_NAME instance;
- Then in your onEnable() Make sure it's the first line in there! -
- Code (Text):
- instance=this;
- So now in all of your classes, you can use PLUGIN_NAME.instance.getConfig()
- 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 -
- Code (Text):
- Bukkit.getPluginManager().getPlugin("PLUGIN_NAME").getConfig()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement