Only check if a bank exists when banks are supported

This commit is contained in:
James Clarke 2013-04-13 00:12:21 +01:00
parent 3ca275cfd6
commit 3098a38ba9
1 changed files with 5 additions and 1 deletions

View File

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