Exemple #1
0
 @Override
 public EconomyResponse isBankOwner(String name, String playerName) {
   if (!economy.bankExists(name)) {
     return new EconomyResponse(0, 0, ResponseType.FAILURE, "That bank does not exist!");
   } else if (economy.isBankOwner(name, playerName)) {
     return new EconomyResponse(0, economy.getBankMoney(name), ResponseType.SUCCESS, "");
   } else
     return new EconomyResponse(0, 0, ResponseType.FAILURE, "That player is not a bank owner!");
 }
Exemple #2
0
 public boolean hasBankAccount(String bank, String name) {
   return BOSEconomy.isBankOwner(bank, name);
 }