Class KitDataSaveEvent

java.lang.Object
org.bukkit.event.Event
net.godlycow.org.essc.api.kit.event.KitDataSaveEvent

public class KitDataSaveEvent extends org.bukkit.event.Event
Fired when a player's kit claim data is persisted.

Observe-only: this event cannot be cancelled.

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    KitDataSaveEvent(UUID playerId, Kit kit, long claimTimestamp, int newClaimCount)
    Creates a new kit data save event.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the claim timestamp in millis.
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    Returns the claimed kit.
    int
    Returns the updated lifetime claim count.
    Returns the player whose data was saved.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KitDataSaveEvent

      public KitDataSaveEvent(UUID playerId, Kit kit, long claimTimestamp, int newClaimCount)
      Creates a new kit data save event.
      Parameters:
      playerId - the player whose data was saved
      kit - the claimed kit
      claimTimestamp - the claim timestamp in millis
      newClaimCount - the updated lifetime claim count
  • Method Details

    • getPlayerId

      public UUID getPlayerId()
      Returns the player whose data was saved.
      Returns:
      the player UUID
    • getKit

      public Kit getKit()
      Returns the claimed kit.
      Returns:
      the kit
    • getClaimTimestamp

      public long getClaimTimestamp()
      Returns the claim timestamp in millis.
      Returns:
      claim timestamp
    • getNewClaimCount

      public int getNewClaimCount()
      Returns the updated lifetime claim count.
      Returns:
      new claim count
    • getHandlers

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

      public static org.bukkit.event.HandlerList getHandlerList()