Class ConfirmationTransaction
java.lang.Object
com.palmergames.bukkit.towny.confirmations.ConfirmationTransaction
-
Constructor Summary
ConstructorDescriptionConfirmationTransaction
(Supplier<Double> costSupplier, Account payee, String loggedMessage) Deprecated.ConfirmationTransaction
(Supplier<Double> costSupplier, Account payee, String loggedMessage, Translatable insufficientFundsMessage) Deprecated.since 0.100.0.10 useConfirmationTransaction(Supplier, EconomyHandler, String, Translatable)
instead.ConfirmationTransaction
(Supplier<Double> costSupplier, EconomyHandler townyObject, String loggedMessage) A transaction which must succeed for a Confirmation to complete.ConfirmationTransaction
(Supplier<Double> costSupplier, EconomyHandler townyObject, String loggedMessage, Translatable insufficientFundsMessage) A transaction which must succeed for a Confirmation to complete. -
Method Summary
-
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) Deprecated.since 0.100.0.10 useConfirmationTransaction(Supplier, EconomyHandler, String, Translatable)
instead.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.since 0.100.0.10 useConfirmationTransaction(Supplier, EconomyHandler, String)
instead.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
-
getLoggedMessage
-
getInsufficientFundsMessage
-
ConfirmationTransaction(Supplier, EconomyHandler, String)
instead.