Class KitFirstJoinEvent

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

public class KitFirstJoinEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Fired when a first-join kit is about to be granted to a new player.

Cancelling this event skips the automatic grant for that player.

  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    KitFirstJoinEvent(org.bukkit.entity.Player player, Kit kit)
    Creates a new first-join kit event.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    Returns the kit about to be granted.
    org.bukkit.entity.Player
    Returns the joining 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

    • KitFirstJoinEvent

      public KitFirstJoinEvent(org.bukkit.entity.Player player, Kit kit)
      Creates a new first-join kit event.
      Parameters:
      player - the joining player
      kit - the kit about to be granted
  • Method Details

    • getPlayer

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

      public Kit getKit()
      Returns the kit about to be granted.
      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()