Package com.nijikokun.register.payment.Method

Examples of com.nijikokun.register.payment.Method.MethodAccount


  }

  public void setBalance(double value) {
    try {
      if (plugin.isRegister()) {
        MethodAccount account = (MethodAccount) getEconomyAccount();
        if (account != null) {
          account.set(value);
        } else {
          TownyMessaging.sendDebugMsg("Account is still null!");
        }
      } else {
        Account account = (Account) getEconomyAccount();
        if (account != null) {
          account.getHoldings().set(value);
        } else {
          TownyMessaging.sendDebugMsg("Account is still null!");
        }
      }
View Full Code Here


  public double getHoldingBalance() throws EconomyException {
    try {
      TownyMessaging.sendDebugMsg("Economy Balance Name: " + getEconomyName());

      if (plugin.isRegister()) {
        MethodAccount account = (MethodAccount) getEconomyAccount();
        if (account != null) {
          TownyMessaging.sendDebugMsg("Economy Balance: " + account.balance());
          return account.balance();
        } else {
          TownyMessaging.sendDebugMsg("Account is still null!");
          return 0;
        }
      } else {
        Account account = (Account) getEconomyAccount();
        if (account != null) {
          TownyMessaging.sendDebugMsg("Economy Balance: " + account.getHoldings().balance());
          return account.getHoldings().balance();
        } else {
          TownyMessaging.sendDebugMsg("Account is still null!");
          return 0;
        }
      }
View Full Code Here

  }

  public void removeAccount() {
    try {
      if (plugin.isRegister()) {
        MethodAccount account = (MethodAccount) getEconomyAccount();
        account.remove();

      } else if (plugin.isIConomy()) {
        iConomy.getAccount(getEconomyName()).remove();
      }
      return;
View Full Code Here

TOP

Related Classes of com.nijikokun.register.payment.Method.MethodAccount

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.