mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-26 16:39:45 +00:00
Catching throwable leads to madness, lets do this safely.
This commit is contained in:
parent
aa88205d95
commit
72edfacfb8
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue