1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-10 08:34:17 +02:00

Catching throwable leads to madness, lets do this safely.

This commit is contained in:
KHobbits
2012-01-21 00:19:13 +00:00
parent ea58fe02cc
commit 113f6a2ee6

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;
}