Class PlayerDepositEvent


public class PlayerDepositEvent extends PlayerEconomyEvent
Called before a Player deposits into the Global Bank
  • Constructor Details

    • PlayerDepositEvent

      public PlayerDepositEvent(Player who, double amount, @Nullable @Nullable Economy econ, long timestamp)
      Constructs a PlayerDepositEvent.
      Parameters:
      who - Player involved
      amount - Amount involved
      econ - Economy involved
      timestamp - Timestamp of the deposit
  • Method Details

    • setAmount

      public void setAmount(double amount) throws IllegalArgumentException
      Sets the amount deposited into the global bank.
      Parameters:
      amount - Amount deposited
      Throws:
      IllegalArgumentException - if amount is negative
    • getAmount

      public double getAmount()
      Fetches the amount deposited into the global bank.
      Overrides:
      getAmount in class PlayerEconomyEvent
      Returns:
      Amount deposited
    • getTimestamp

      public long getTimestamp()
      Fetches the system milliseconds timestamp of the deposit
      Returns:
      System Milliseconds