If Vault is not enabled, don't enable Jailpay.
This commit is contained in:
parent
43feed4469
commit
45bd1776ee
@ -162,6 +162,7 @@ public class JailPayManager {
|
||||
|
||||
private boolean setupEconomy(JailMain plugin) {
|
||||
if (economy != null) return true;
|
||||
else if(!plugin.getServer().getPluginManager().isPluginEnabled("Vault")) return false;
|
||||
|
||||
RegisteredServiceProvider<Economy> economyProvider = plugin.getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
|
||||
if (economyProvider != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user