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

public class Transaction extends Object
  • Constructor Details Link icon

  • Method Details Link icon

    • add Link icon

      public static TransactionBuilder add(double amount)
    • subtract Link icon

      public static TransactionBuilder subtract(double amount)
    • deposit Link icon

      public static TransactionBuilder deposit(double amount)
    • withdraw Link icon

      public static TransactionBuilder withdraw(double amount)
    • getType Link icon

      public TransactionType getType()
    • getReceivingAccount Link icon

      @Nullable public @Nullable Account getReceivingAccount()
    • hasReceiverAccount Link icon

      public boolean hasReceiverAccount()
    • getSendingAccount Link icon

      @Nullable public @Nullable Account getSendingAccount()
    • hasSenderAccount Link icon

      public boolean hasSenderAccount()
    • getSendingPlayer Link icon

      @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 Link icon

      public double getAmount()