Class ACurrency.BankProvider

java.lang.Object
com.olziedev.playerauctions.api.expansion.ACurrency.BankProvider
Enclosing class:
ACurrency

public abstract static class ACurrency.BankProvider extends Object
Represents a bank provider that can be used to withdraw money from a bank account.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract double
    Retrieve the balance from a player in this provider.
    boolean
    hasBalance(APlayer aPlayer, double amount)
    Retrieve if the player has the balance specified in this provider.
    abstract boolean
     
    abstract void
    withdraw(APlayer aPlayer, double amount)
    Withdraw the amount from the players balance in this provider.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BankProvider

      public BankProvider()
  • Method Details

    • hasBalance

      public boolean hasBalance(APlayer aPlayer, double amount)
      Retrieve if the player has the balance specified in this provider.
      Parameters:
      aPlayer - The player to that checks the balance for.
      amount - The amount to check for.
      Returns:
      If the player has the amount in this provider.
    • isEnabled

      public abstract boolean isEnabled()
      Returns:
      If the provider is enabled in the configuration file and is loaded onto the server.
    • getBalance

      public abstract double getBalance(APlayer aPlayer)
      Retrieve the balance from a player in this provider.
      Parameters:
      aPlayer - The player to get the balance from.
      Returns:
      The balance from the player in this provider.
    • withdraw

      public abstract void withdraw(APlayer aPlayer, double amount)
      Withdraw the amount from the players balance in this provider.
      Parameters:
      aPlayer - The player to withdraw the currency from.
      amount - The amount to take from this currency.