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)
  • Constructor Details

    • AccountingTransactionEventDTO

      public AccountingTransactionEventDTO()
  • 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:
      getHandlers in class org.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.