Class ConfirmationTransaction

java.lang.Object
com.palmergames.bukkit.towny.confirmations.ConfirmationTransaction

public class ConfirmationTransaction extends Object
  • Constructor Details

    • ConfirmationTransaction

      public ConfirmationTransaction(Supplier<Double> costSupplier, EconomyHandler townyObject, String loggedMessage, Translatable insufficientFundsMessage)
      A transaction which must succeed for a Confirmation to complete.
      Parameters:
      costSupplier - cost of the transaction.
      townyObject - EconomyHandler which will have to pay, this will be a Resident, Town or Nation.
      loggedMessage - The message logged in the money.csv file.
      insufficientFundsMessage - Transatable which will display the cannot pay message.
    • ConfirmationTransaction

      public ConfirmationTransaction(Supplier<Double> costSupplier, EconomyHandler townyObject, String loggedMessage)
      A transaction which must succeed for a Confirmation to complete. Uses the default no money error message.
      Parameters:
      costSupplier - cost of the transaction.
      townyObject - EconomyHandler which will have to pay, this will be a Resident, Town or Nation.
      loggedMessage - The message logged in the money.csv file.
    • ConfirmationTransaction

      @Deprecated public ConfirmationTransaction(Supplier<Double> costSupplier, Account payee, String loggedMessage, Translatable insufficientFundsMessage)
      A transaction which must succeed for a Confirmation to complete.
      Parameters:
      costSupplier - cost of the transaction.
      payee - Account which will have to pay.
      loggedMessage - The message logged in the money.csv file.
      insufficientFundsMessage - Transatable which will display the cannot pay message.
    • ConfirmationTransaction

      @Deprecated public ConfirmationTransaction(Supplier<Double> costSupplier, Account payee, String loggedMessage)
      Deprecated.
      A transaction which must succeed for a Confirmation to complete. Uses the default no money error message.
      Parameters:
      costSupplier - cost of the transaction.
      payee - Account which will have to pay.
      loggedMessage - The message logged in the money.csv file.
  • Method Details

    • supplyCost

      public void supplyCost()
    • getCost

      public double getCost()
    • getPayee

      @Nullable public @Nullable Account getPayee()
    • getLoggedMessage

      public String getLoggedMessage()
    • getInsufficientFundsMessage

      public Translatable getInsufficientFundsMessage()