Ejemplo n.º 1
0
  // Bank
  public boolean setBank(String player, String bankName) {
    // does we support banks?
    if (!economy.hasBankSupport()) return false;

    // check if the given bank belongs to the traders owner
    if (!economy.isBankOwner(bank, player).equals(ResponseType.SUCCESS)) return false;

    // set the bank
    bank = bankName;
    return true;
  }