Class EconomyTransactionEvent
java.lang.Object
org.bukkit.event.Event
fr.mathildeuh.youneedme.api.event.EconomyTransactionEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class EconomyTransactionEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Fired before any balance change is persisted - deposit, withdraw, set, or one leg of a
/pay transfer (which fires twice: once per account). The account involved may be offline, so
this carries a UUID rather than a Player.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionEconomyTransactionEvent(UUID account, String currencyId, EconomyTransactionEvent.Type type, double amount, String reason, @Nullable UUID relatedAccount) -
Method Summary
Modifier and TypeMethodDescriptiondoublestatic org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListMachine-readable cause, e.g.@Nullable UUIDThe other party for a transfer (e.g.getType()booleanvoidsetCancelled(boolean cancel) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
EconomyTransactionEvent
public EconomyTransactionEvent(UUID account, String currencyId, EconomyTransactionEvent.Type type, double amount, String reason, @Nullable @Nullable UUID relatedAccount)
-
-
Method Details
-
getAccount
-
getCurrencyId
-
getType
-
getAmount
public double getAmount() -
getReason
Machine-readable cause, e.g."pay","shop-buy","eco-admin". -
getRelatedAccount
The other party for a transfer (e.g. the/payrecipient), if any. -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-