hooks repeat themselves / wrong hooked plugin displayed
ZachBora opened this issue ยท 2 comments
I'm not sure what could cause this, I was checking to see if it hooked my plugin and noticed it mentions iChat hooked like 7 times but never my plugin. My plugin which I'm trying to add Vault on is the [PlotMe].
Log here (you can see the plugin versions too) : http://pastebin.com/5BvXS4hM
In my plugin.yml :
softdepend: [WorldEdit, Vault]
In my main class :
private boolean setupEconomy()
{
RegisteredServiceProvider<Economy> economyProvider = getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
if (economyProvider != null) {
economy = economyProvider.getProvider();
}
PlotMe.logger.info(PREFIX + " Hooking to vault " + (economy != null)); // I added this line and it shows false in the server log.
return (economy != null);
}