Package net.essentialsx.api.v2.events
Class KitPreExpandItemsEvent
java.lang.Object
org.bukkit.event.Event
net.essentialsx.api.v2.events.KitPreExpandItemsEvent
Called when items from a kit are about to be given to a
user
.
This event is not cancellable and is called right before items are about to be received by the user
.
If you want to prevent kits from being claimed to begin with, use the KitClaimEvent
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionKitPreExpandItemsEvent
(IUser user, String kitName, List<ItemStack> itemStacks) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Returns a mutable list with items to be received by theuser
.Gets the name of the kit theuser
is receiving.getUser()
Gets theuser
who is receiving the kit.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
KitPreExpandItemsEvent
-
-
Method Details
-
getUser
Gets theuser
who is receiving the kit.- Returns:
- the user.
-
getKitName
Gets the name of the kit theuser
is receiving.- Returns:
- the name of the kit.
-
getItemStacks
Returns a mutable list with items to be received by theuser
.- Returns:
- the list of items.
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-