Class XPrisonEnchantUnregisterEvent

java.lang.Object
org.bukkit.event.Event
dev.drawethree.xprison.api.shared.events.XPrisonEvent
dev.drawethree.xprison.api.enchants.events.XPrisonEnchantUnregisterEvent

public class XPrisonEnchantUnregisterEvent extends XPrisonEvent
Event fired when a XPrisonEnchantment is unregistered from the system. This can be used to handle cleanup or update dependent systems when an enchantment becomes unavailable.
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    Constructs a new XPrisonEnchantUnregisterEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Returns the handler list for this event type.
    @NotNull org.bukkit.event.HandlerList
     

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • XPrisonEnchantUnregisterEvent

      public XPrisonEnchantUnregisterEvent(XPrisonEnchantment enchantment)
      Constructs a new XPrisonEnchantUnregisterEvent.
      Parameters:
      enchantment - the enchantment being unregistered
  • Method Details

    • getHandlers

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

      public static org.bukkit.event.HandlerList getHandlerList()
      Returns the handler list for this event type.
      Returns:
      the static handler list