Class PlayerBuyCosmeticEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
de.marcely.bedwars.api.cosmetics.event.PlayerBuyCosmeticEvent
- All Implemented Interfaces:
Cancellable
Gets called when a player attempts to buy a cosmetic item.
-
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
ConstructorsConstructorDescriptionPlayerBuyCosmeticEvent(Player player, CosmeticPlayer playerData, CosmeticItem cosmetic) -
Method Summary
Modifier and TypeMethodDescriptionGets the cosmetic item the player is trying to buy.static HandlerListGets the loaded cosmetic player data of the player.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
PlayerBuyCosmeticEvent
-
-
Method Details
-
getPlayerData
Gets the loaded cosmetic player data of the player.- Returns:
- The loaded cosmetic player data of the player.
-
getCosmetic
Gets the cosmetic item the player is trying to buy.- Returns:
- The cosmetic item the player is trying to buy.
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-