Class OllivandersPlayerSortedEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
net.pottercraft.ollivanders2.house.events.OllivandersPlayerSortedEvent

public class OllivandersPlayerSortedEvent extends org.bukkit.event.player.PlayerEvent
Event fired when a player is sorted into a Hogwarts house.

OllivandersPlayerSortedEvent is a custom Bukkit event that fires whenever a player completes the sorting process and is assigned to a house. This event allows plugins to hook into the sorting system and respond when a player is sorted, such as logging the event, applying house-specific effects, or broadcasting the sorting result to other players.

  • Nested Class Summary

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

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

    Fields inherited from class org.bukkit.event.player.PlayerEvent

    player
  • Constructor Summary

    Constructors
    Constructor
    Description
    OllivandersPlayerSortedEvent(@NotNull org.bukkit.entity.Player player)
    Constructor for creating a player sorted event.
  • Method Summary

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

    Methods inherited from class org.bukkit.event.player.PlayerEvent

    getPlayer

    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

    • OllivandersPlayerSortedEvent

      public OllivandersPlayerSortedEvent(@NotNull @NotNull org.bukkit.entity.Player player)
      Constructor for creating a player sorted event.

      Creates an event that fires when a player is sorted into a house during the sorting process.

      Parameters:
      player - the player being sorted into a house
  • Method Details

    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Get the handler list for this event.

      Returns the HandlerList that manages all listeners registered for OllivandersPlayerSortedEvent instances. This is required by the Bukkit event system.

      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      the handler list for this event
    • getHandlerList

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

      Returns the static HandlerList for all OllivandersPlayerSortedEvent instances. This method is required by the Bukkit event system for event listener management.

      Returns:
      the static handler list for OllivandersPlayerSortedEvent