Class AccountingTransactionEventDTO
java.lang.Object
org.bukkit.event.Event
enterprises.iwakura.economysystem.api.events.AccountingTransactionEventDTO
public class AccountingTransactionEventDTO
extends org.bukkit.event.Event
Event representing an accounting transaction.
This event is triggered when a transaction occurs, such as a transfer of balance.
Please note that this even is not cancellable and is asynchronous.
In order for this event to be fired, you must create EconomySystemAPI (or any other plugin)
Please note that this even is not cancellable and is asynchronous.
In order for this event to be fired, you must create EconomySystemAPI (or any other plugin)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionAccountingTransactionEventDTO(AccountingTransactionDTO transactionDto, StandingOrderDTO causedByStandingOrder, LoanDTO causedByLoan, boolean silent) -
Method Summary
Modifier and TypeMethodDescriptionfromEntity(gol.economy.event.AccountingTransactionEvent event) Creates a new AccountingTransactionEventDTO from the given event.static org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListbooleanDetermines if the event was caused by a loan.booleanDetermines if the event was caused by a standing order.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
AccountingTransactionEventDTO
public AccountingTransactionEventDTO(AccountingTransactionDTO transactionDto, StandingOrderDTO causedByStandingOrder, LoanDTO causedByLoan, boolean silent)
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
fromEntity
public static AccountingTransactionEventDTO fromEntity(gol.economy.event.AccountingTransactionEvent event) Creates a new AccountingTransactionEventDTO from the given event.- Parameters:
event- The event to convert- Returns:
- A new instance of AccountingTransactionEventDTO
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
isCausedByStandingOrder
public boolean isCausedByStandingOrder()Determines if the event was caused by a standing order.- Returns:
- true if the event was caused by a standing order, false otherwise.
-
isCausedByLoan
public boolean isCausedByLoan()Determines if the event was caused by a loan.- Returns:
- true if the event was caused by a loan, false otherwise.
-