Class KitClaimEvent

java.lang.Object
org.bukkit.event.Event
net.godlycow.org.essc.api.kit.event.KitClaimEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class KitClaimEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Fired when a player attempts to claim a kit, before any items are granted.

Cancelling this event blocks the claim. Fired for both command claims and KitManager.claimKitForPlayer(Player, Kit) API claims.

  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    KitClaimEvent(org.bukkit.entity.Player player, Kit kit)
    Creates a new kit claim event.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    Returns the kit being claimed.
    org.bukkit.entity.Player
    Returns the claiming player.
    boolean
     
    void
    setCancelled(boolean cancel)
     

    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

    • KitClaimEvent

      public KitClaimEvent(org.bukkit.entity.Player player, Kit kit)
      Creates a new kit claim event.
      Parameters:
      player - the claiming player
      kit - the kit being claimed
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Returns the claiming player.
      Returns:
      the player
    • getKit

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

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlers

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

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