java.lang.Object
com.palmergames.bukkit.towny.object.economy.transaction.Transaction

public class Transaction extends Object
  • Constructor Details

  • Method Details

    • add

      public static TransactionBuilder add(double amount)
    • subtract

      public static TransactionBuilder subtract(double amount)
    • deposit

      public static TransactionBuilder deposit(double amount)
    • withdraw

      public static TransactionBuilder withdraw(double amount)
    • getType

      public TransactionType getType()
    • getReceivingAccount

      @Nullable public @Nullable Account getReceivingAccount()
    • hasReceiverAccount

      public boolean hasReceiverAccount()
    • getSendingAccount

      @Nullable public @Nullable Account getSendingAccount()
    • hasSenderAccount

      public boolean hasSenderAccount()
    • getSendingPlayer

      @Nullable public @Nullable org.bukkit.entity.Player getSendingPlayer()
      In the case of a Transaction where a player deposits money into a town or nation bank, this will return the player, or null if it is not a transaction where a player sent money.
      Returns:
      the Player that sent money or null.
    • getAmount

      public double getAmount()