If Vault is not enabled, don't enable Jailpay.

This commit is contained in:
graywolf336 2014-04-01 23:09:15 -05:00
parent 43feed4469
commit 45bd1776ee

View File

@ -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) {