Class BalanceChangeEvent

java.lang.Object
org.bukkit.event.Event
All Implemented Interfaces:
org.bukkit.event.Cancellable

public final class BalanceChangeEvent extends CancellableStealABlockEvent
Fired whenever a player's money balance changes.
  • Constructor Details

    • BalanceChangeEvent

      public BalanceChangeEvent(@NotNull @NotNull UUID playerId, double previousBalance, double newBalance, @NotNull @NotNull Cause cause)
  • Method Details

    • getPlayerId

      @NotNull public @NotNull UUID getPlayerId()
    • getPreviousBalance

      public double getPreviousBalance()
    • getNewBalance

      public double getNewBalance()
    • setNewBalance

      public void setNewBalance(double newBalance)
    • getDelta

      public double getDelta()
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
    • canFireSync

      public static boolean canFireSync()