Class PlayerUseLobbyItemEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.event.player.PlayerUseLobbyItemEvent
- All Implemented Interfaces:
ArenaEvent
,Cancellable
Gets called whenever a player uses a
LobbyItem
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionPlayerUseLobbyItemEvent
(Player player, LobbyItem lobbyItem, Arena arena, ItemStack item) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
getItem()
Returns the ItemStack on which has been clicked.Returns theLobbyItem
that was used by the player.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
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
Methods inherited from interface de.marcely.bedwars.api.event.arena.ArenaEvent
getArena
Methods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
PlayerUseLobbyItemEvent
-
-
Method Details
-
getLobbyItem
Returns theLobbyItem
that was used by the player.- Returns:
- The item involved in this event
-
getItem
Returns the ItemStack on which has been clicked.- Returns:
- The item on which has been clicked
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-