Class PlayerWarpSortEvent
java.lang.Object
org.bukkit.event.Event
com.olziedev.playerwarps.api.events.WarpEvent
com.olziedev.playerwarps.api.events.menu.PlayerWarpSortEvent
- All Implemented Interfaces:
Cancellable
Event that is triggered before a new sort type is set.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerWarpSortEvent
(WPlayer player, Comparator<Warp> comparator, WarpSortType sortType) This event is triggered before a menu is opened. -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
void
setComparator
(Comparator<Warp> comparator) Methods inherited from class com.olziedev.playerwarps.api.events.WarpEvent
acceptCallback, callEvent, getPlayerWarpsAPI, isCancelled, isWaitingForCallback, postEvent, postEvent, setCancelled, setEventCallback, waitForCallback
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerWarpSortEvent
This event is triggered before a menu is opened.- Parameters:
player
- The player that is opening the menu.comparator
- The type of sorter that is being used.sortType
- The new sort type.
-
-
Method Details
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getPlayer
- Returns:
- The player that is opening the menu.
-
getComparator
- Returns:
- The type of sorter that is being used.
-
setComparator
- Parameters:
comparator
- The new type of sorter that is being used.
-
getWarpSortType
- Returns:
- The new sort type.
-