From aa88205d9554e236c0bcbafcaa08e49e2d585581 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sat, 21 Jan 2012 00:01:43 +0000 Subject: [PATCH] Catch errors too, incase the class doesn't exist. --- .../earth2me/essentials/register/payment/methods/VaultEco.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3d66c2f02..45606c29b 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,7 @@ public class VaultEco implements Method RegisteredServiceProvider ecoPlugin = plugin.getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class); return plugin instanceof Vault && ecoPlugin != null && !ecoPlugin.getProvider().getName().equals("Essentials Economy"); } - catch (Exception e) + catch (Throwable e) { return false; }