Class KitLoadEvent

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

public class KitLoadEvent extends org.bukkit.event.Event
Fired when a kit definition is loaded from disk.

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
    KitLoadEvent(Kit kit, String sourceFileName)
    Creates a new kit load event.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    Returns the loaded kit.
    Returns the file the kit was loaded from.

    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

    • KitLoadEvent

      public KitLoadEvent(Kit kit, String sourceFileName)
      Creates a new kit load event.
      Parameters:
      kit - the loaded kit
      sourceFileName - the file the kit was loaded from
  • Method Details

    • getKit

      public Kit getKit()
      Returns the loaded kit.
      Returns:
      the kit
    • getSourceFileName

      public String getSourceFileName()
      Returns the file the kit was loaded from.
      Returns:
      the source file name
    • getHandlers

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

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