summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-01-21 00:19:13 +0000
committerKHobbits <rob@khobbits.co.uk>2012-01-21 00:19:13 +0000
commit72edfacfb8ccdc44450ad9a9bee930d68f251db6 (patch)
treed64a7ff0105e2497ca1c03cc7bb8b272d1eea944
parentaa88205d9554e236c0bcbafcaa08e49e2d585581 (diff)
downloadEssentials-72edfacfb8ccdc44450ad9a9bee930d68f251db6.tar
Essentials-72edfacfb8ccdc44450ad9a9bee930d68f251db6.tar.gz
Essentials-72edfacfb8ccdc44450ad9a9bee930d68f251db6.tar.lz
Essentials-72edfacfb8ccdc44450ad9a9bee930d68f251db6.tar.xz
Essentials-72edfacfb8ccdc44450ad9a9bee930d68f251db6.zip
Catching throwable leads to madness, lets do this safely.
-rw-r--r--Essentials/src/com/earth2me/essentials/register/payment/methods/VaultEco.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/register/payment/methods/VaultEco.java b/Essentials/src/com/earth2me/essentials/register/payment/methods/VaultEco.java
index 45606c29b..84ce816cf 100644
--- a/Essentials/src/com/earth2me/essentials/register/payment/methods/VaultEco.java
+++ b/Essentials/src/com/earth2me/essentials/register/payment/methods/VaultEco.java
@@ -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;
}