Class PlayerRefundAttributeEvent

java.lang.Object
org.bukkit.event.Event
com.sucy.skill.api.event.PlayerRefundAttributeEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class PlayerRefundAttributeEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Event called when a player refunds an attribute point
  • Constructor Details

    • PlayerRefundAttributeEvent

      public PlayerRefundAttributeEvent(PlayerData playerData, String attribute)
      Constructor
      Parameters:
      playerData - data of the player upgrading the skill
      attribute - the name of the attribute that was raised
  • Method Details

    • getPlayerData

      public PlayerData getPlayerData()
      Returns:
      data of the player refunding the attribute
    • getAttribute

      public String getAttribute()
      Returns:
      name of the refunded attribute
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
      Returns:
      true if cancelled, false otherwise
    • setCancelled

      public void setCancelled(boolean value)
      Sets whether the event is cancelled
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Parameters:
      value - true if cancelled, false otherwise
    • getHandlers

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

      public static org.bukkit.event.HandlerList getHandlerList()
      Returns:
      gets the handlers for the event