From 3098a38ba9983d3630701ff199c6bbf1ddebf99e Mon Sep 17 00:00:00 2001 From: James Clarke Date: Sat, 13 Apr 2013 00:12:21 +0100 Subject: [PATCH] Only check if a bank exists when banks are supported --- src/main/java/com/Acrobot/ChestShop/Economy/Economy.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Economy/Economy.java b/src/main/java/com/Acrobot/ChestShop/Economy/Economy.java index 0945f1c..4f9f509 100644 --- a/src/main/java/com/Acrobot/ChestShop/Economy/Economy.java +++ b/src/main/java/com/Acrobot/ChestShop/Economy/Economy.java @@ -44,7 +44,11 @@ public class Economy { } public static boolean bankExists(String name) { - return manager.bankExists(name); + if (hasBankSupport()) { + return manager.bankExists(name); + } else { + return false; + } } public static boolean add(String name, double amount) {