Catching throwable leads to madness, lets do this safely.

This commit is contained in:
KHobbits 2012-01-21 00:19:13 +00:00
parent aa88205d95
commit 72edfacfb8

View File

@ -126,7 +126,11 @@ public class VaultEco implements Method
RegisteredServiceProvider<Economy> ecoPlugin = plugin.getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
return plugin instanceof Vault && ecoPlugin != null && !ecoPlugin.getProvider().getName().equals("Essentials Economy");
}
catch (Throwable e)
catch (LinkageError e)
{
return false;
}
catch (Exception e)
{
return false;
}