Class PlayerStatChangeEvent

java.lang.Object
org.bukkit.event.Event
com.tomkeuper.bedwars.api.events.player.PlayerStatChangeEvent

public class PlayerStatChangeEvent extends org.bukkit.event.Event
An event that is called when player statistics are changed.
  • Constructor Details

    • PlayerStatChangeEvent

      public PlayerStatChangeEvent(org.bukkit.entity.Player player, IArena arena, PlayerStatChangeEvent.StatType statType)
      Constructs a new PlayerStatChangeEvent.
      Parameters:
      player - the target player
      arena - the target arena
      statType - the type of statistic being changed
  • Method Details

    • getArena

      public IArena getArena()
      Gets the arena associated with the event.
      Returns:
      the arena associated with the event
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Gets the player associated with the event.
      Returns:
      the player associated with the event
    • getStatType

      public PlayerStatChangeEvent.StatType getStatType()
      Gets the type of statistic being changed.
      Returns:
      the type of statistic being changed
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Gets the list of event handlers for the event.
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      the list of event handlers for the event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Gets the list of event handlers for the event.
      Returns:
      the list of event handlers for the event
    • isCancelled

      public boolean isCancelled()
      Checks if the event is cancelled.
      Returns:
      true if the event is cancelled, false otherwise
    • setCancelled

      public void setCancelled(boolean cancelled)
      Sets the cancellation status of the event.
      Parameters:
      cancelled - true to cancel the event, false otherwise