Class OllivandersPlayerSortedEvent
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
ConstructorsConstructorDescriptionOllivandersPlayerSortedEvent(@NotNull org.bukkit.entity.Player player) Constructor for creating a player sorted event. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListGet the static handler list for this event type.@NotNull org.bukkit.event.HandlerListGet the handler list for this event.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
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:
getHandlersin classorg.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
-