MilkBowl/Vault — Issue #82: economy linking not working with many plugins?
Author: mcheaven
Created: 2012-02-01 17:21:55+00:00
State: open

Hi,
My link isnt working, if there are many plugins loaded. I tried to find the bug but its not plugin specific and just if more then 30 plugins in the ./plugins folder it doesnt work with one specific plugin, Here is my Code:

RegisteredServiceProvider economyProvider = getServer().getServicesManager().getRegistration(Economy.class);
if(economyProvider != null)
economy = economyProvider.getProvider();
else
{
log.info("["+pdf.getName()+"] Vault error: No economy provider!");
pm.disablePlugin(this);
return;
}
if(!economy.isEnabled())
{
log.info("["+pdf.getName()+"] Vault error: Economy disabled!");
pm.disablePlugin(this);
return;
}