From 45bd1776ee8fb1fc33d07f734b622201fcb07747 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Tue, 1 Apr 2014 23:09:15 -0500 Subject: [PATCH] If Vault is not enabled, don't enable Jailpay. --- src/main/java/com/graywolf336/jail/JailPayManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/graywolf336/jail/JailPayManager.java b/src/main/java/com/graywolf336/jail/JailPayManager.java index a96ad11..33a9c19 100644 --- a/src/main/java/com/graywolf336/jail/JailPayManager.java +++ b/src/main/java/com/graywolf336/jail/JailPayManager.java @@ -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 economyProvider = plugin.getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class); if (economyProvider != null) {