mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-25 17:37:34 +01:00
Only check if a bank exists when banks are supported
This commit is contained in:
parent
3ca275cfd6
commit
3098a38ba9
@ -44,7 +44,11 @@ public class Economy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean bankExists(String name) {
|
public static boolean bankExists(String name) {
|
||||||
|
if (hasBankSupport()) {
|
||||||
return manager.bankExists(name);
|
return manager.bankExists(name);
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean add(String name, double amount) {
|
public static boolean add(String name, double amount) {
|
||||||
|
Loading…
Reference in New Issue
Block a user