Hello! I recently updated my plugin to 1.7 from 1.6.4, and I got an error. This is the stack trace: http://pastebin.com/hCNPMaQm I really hope we can fix this. I will give you more information when you ask. -Becidycu
Probably you used "new <main plugin class name>()", so you created another instance of your plugin, that Bukkit don't allow. Send me your events class
Code:java //onEnable @ MainClassgetServer().getPluginManager().registerEvents(new Events(this), this);// this will maintain the same instance of your plugin, so you can use plugin.getConfig() on your Events class Code:java public class Events implements Listener { private final MainClass plugin; public Events(MainClass plugin) {this.plugin = plugin;} /* events and methods hereplugin.getConfig() is now avaliable here */}
Code0 rfsantos1996 I can still not use "getConfig()" for a weird reason.. Oh. Never mined... :S THANKS!! EDIT by Moderator: merged posts, please use the edit button instead of double posting.
rfsantos1996 Oh didn't even notice. Sorry Please mark this as solved. becidycu EDIT by Moderator: merged posts, please use the edit button instead of double posting.