Package net.ess3.api.events
Class UserBalanceUpdateEvent
java.lang.Object
org.bukkit.event.Event
net.ess3.api.events.UserBalanceUpdateEvent
Fired when a user's balance updates.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The cause of the balance update.Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionUserBalanceUpdateEvent
(Player player, BigDecimal originalBalance, BigDecimal balance) Deprecated.UserBalanceUpdateEvent
(Player player, BigDecimal originalBalance, BigDecimal balance, UserBalanceUpdateEvent.Cause cause) -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
static HandlerList
void
setNewBalance
(BigDecimal newBalance) Override the value that the user's balance will be changed to.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
UserBalanceUpdateEvent
@Deprecated public UserBalanceUpdateEvent(Player player, BigDecimal originalBalance, BigDecimal balance) Deprecated. -
UserBalanceUpdateEvent
public UserBalanceUpdateEvent(Player player, BigDecimal originalBalance, BigDecimal balance, UserBalanceUpdateEvent.Cause cause)
-
-
Method Details
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getPlayer
-
getNewBalance
-
setNewBalance
Override the value that the user's balance will be changed to.- Parameters:
newBalance
- The user's new balance
-
getOldBalance
-
getCause
-