# Uses of Class
org.bukkit.event.player.PlayerEvent

Packages that use PlayerEvent
Package
Description
com.destroystokyo.paper.event.entity
com.destroystokyo.paper.event.player
com.destroystokyo.paper.loottable
io.papermc.paper.event.block
io.papermc.paper.event.player
org.bukkit.event.player
`Events` relating to `players`.
org.spigotmc.event.player
Spigot-specific player events.

## Uses of PlayerEvent in com.destroystokyo.paper.event.entity

Subclasses of PlayerEvent in com.destroystokyo.paper.event.entity
Modifier and Type
Class
Description
`class`
`PlayerNaturallySpawnCreaturesEvent`
Fired when the server is calculating what chunks to try to spawn monsters in every Monster Spawn Tick event

## Uses of PlayerEvent in com.destroystokyo.paper.event.player

Subclasses of PlayerEvent in com.destroystokyo.paper.event.player
Modifier and Type
Class
Description
`class`
`IllegalPacketEvent`
Deprecated.
Not used
`class`
`PlayerAdvancementCriterionGrantEvent`
Called when a player is granted a criteria in an advancement.
`class`
`PlayerArmorChangeEvent`
Called when the player themselves change their armor items
`class`
`PlayerAttackEntityCooldownResetEvent`
Called when processing a player's attack on an entity when the player's attack strength cooldown is reset
`class`
`PlayerClientOptionsChangeEvent`
Called when the player changes their client settings
`class`
`PlayerElytraBoostEvent`
Fired when a player boosts elytra flight with a firework
`class`
`PlayerInitialSpawnEvent`
Deprecated.
Use `PlayerSpawnLocationEvent`, Duplicate API
`class`
`PlayerJumpEvent`
Called when the server detects the player is jumping.
`class`
`PlayerLaunchProjectileEvent`
Called when a player shoots a projectile.
`class`
`PlayerLocaleChangeEvent`
Deprecated.
Replaced by `PlayerLocaleChangeEvent` upstream
`class`
`PlayerPickupExperienceEvent`
Fired when a player is attempting to pick up an experience orb
`class`
`PlayerPostRespawnEvent`
Fired after a player has respawned
`class`
`PlayerReadyArrowEvent`
Called when a player is firing a bow and the server is choosing an arrow to use.
`class`
`PlayerRecipeBookClickEvent`
Called when a player clicks a recipe in the recipe book
`class`
`PlayerSetSpawnEvent`
Called when a player's spawn is set, either by themselves or otherwise.
Cancelling this event will prevent the spawn from being set.
`class`
`PlayerStartSpectatingEntityEvent`
Triggered when a player starts spectating an entity in spectator mode.
`class`
`PlayerStopSpectatingEntityEvent`
Triggered when a player stops spectating an entity in spectator mode.
`class`
`PlayerTeleportEndGatewayEvent`
Fired when a teleport is triggered for an End Gateway
`class`
`PlayerUseUnknownEntityEvent`

## Uses of PlayerEvent in com.destroystokyo.paper.loottable

Subclasses of PlayerEvent in com.destroystokyo.paper.loottable
Modifier and Type
Class
Description
`class`
`LootableInventoryReplenishEvent`

## Uses of PlayerEvent in io.papermc.paper.event.block

Subclasses of PlayerEvent in io.papermc.paper.event.block
Modifier and Type
Class
Description
`class`
`PlayerShearBlockEvent`
Called when a player uses sheers on a block.

## Uses of PlayerEvent in io.papermc.paper.event.player

Subclasses of PlayerEvent in io.papermc.paper.event.player
Modifier and Type
Class
Description
`class`
`AbstractChatEvent`
An abstract implementation of a chat event, handling shared logic.
`final class`
`AsyncChatEvent`
An event fired when a `Player` sends a chat message to the server.
`final class`
`ChatEvent`
Deprecated.
Listening to this event forces chat to wait for the main thread, delaying chat messages.
`class`
`PlayerArmSwingEvent`
`class`
`PlayerBedFailEnterEvent`
`class`
`PlayerChangeBeaconEffectEvent`
Called when a player sets the effect for a beacon
`class`
`PlayerDeepSleepEvent`
Called when a player has slept long enough to count as passing the night/storm.
`class`
`PlayerFlowerPotManipulateEvent`
Called when a player places an item in or takes an item out of a flowerpot.
`class`
`PlayerInventorySlotChangeEvent`
Called when a slot contents change in a player's inventory.
`class`
`PlayerItemCooldownEvent`
Fired when a player receives an item cooldown.
`class`
`PlayerItemFrameChangeEvent`
Called when an `ItemFrame` is having an item rotated, added, or removed from it.
`class`
`PlayerLecternPageChangeEvent`
`class`
`PlayerLoomPatternSelectEvent`
Called when a player selects a banner patten in a loom inventory.
`class`
`PlayerNameEntityEvent`
Called when the player is attempting to rename a mob
`class`
`PlayerPurchaseEvent`
Called when a player trades with a standalone merchant GUI.
`class`
`PlayerSignCommandPreprocessEvent`
Called when a `Player` clicks a sign that causes a command to run.
`class`
`PlayerStonecutterRecipeSelectEvent`
`class`
`PlayerStopUsingItemEvent`
Called when the server detects a player stopping using an item.
`class`
`PlayerTrackEntityEvent`
Is called when a `Player` tracks an `Entity`.
`class`
`PlayerTradeEvent`
Called when a player trades with a villager or wandering trader
`class`
`PlayerUntrackEntityEvent`
Is called when a `Player` untracks an `Entity`.
`class`
`PrePlayerAttackEntityEvent`
Called when the player tries to attack an entity.

## Uses of PlayerEvent in org.bukkit.event.player

Subclasses of PlayerEvent in org.bukkit.event.player
Modifier and Type
Class
Description
`class`
`AsyncPlayerChatEvent`
Deprecated.
use `AsyncChatEvent` instead
`class`
`AsyncPlayerChatPreviewEvent`
Deprecated.
chat previews have been removed
`class`
`PlayerAdvancementDoneEvent`
Called when a player has completed all criteria in an advancement.
`class`
`PlayerAnimationEvent`
Represents a player animation event
Use `PlayerArmSwingEvent` for determining which arm was swung.
`class`
`PlayerArmorStandManipulateEvent`
Called when a player interacts with an armor stand and will either swap, retrieve or place an item.
`class`
`PlayerAttemptPickupItemEvent`
Thrown when a player attempts to pick an item up from the ground
`class`
`PlayerBedEnterEvent`
This event is fired when the player is almost about to enter the bed.
`class`
`PlayerBedLeaveEvent`
This event is fired when the player is leaving a bed.
`class`
`PlayerBucketEmptyEvent`
Called when a player empties a bucket
`class`
`PlayerBucketEntityEvent`
This event is called whenever a player captures an entity in a bucket.
`class`
`PlayerBucketEvent`
Called when a player interacts with a Bucket
`class`
`PlayerBucketFillEvent`
Called when a player fills a bucket
`class`
`PlayerBucketFishEvent`
Deprecated.
Use the more generic `PlayerBucketEntityEvent`
`class`
`PlayerChangedMainHandEvent`
Called when a player changes their main hand in the client settings.
`class`
`PlayerChangedWorldEvent`
Called when a player switches to another world.
`class`
`PlayerChannelEvent`
This event is called after a player registers or unregisters a new plugin channel.
`class`
`PlayerChatEvent`
Deprecated.
This event will fire from the main thread and allows the use of all of the Bukkit API, unlike the `AsyncPlayerChatEvent`.
`class`
`PlayerChatTabCompleteEvent`
Deprecated.
This event is no longer fired due to client changes
`class`
`PlayerCommandPreprocessEvent`
This event is called whenever a player runs a command (by placing a slash at the start of their message).
`class`
`PlayerCommandSendEvent`
This event is called when the list of available server commands is sent to the player.
`class`
`PlayerDropItemEvent`
Thrown when a player drops an item from their inventory
`class`
`PlayerEditBookEvent`
Called when a player edits or signs a book and quill item.
`class`
`PlayerEggThrowEvent`
Called when a player throws an egg and it might hatch
`class`
`PlayerExpChangeEvent`
Called when a players experience changes naturally
`class`
`PlayerFishEvent`
Thrown when a player is fishing
`class`
`PlayerGameModeChangeEvent`
Called when the GameMode of the player is changed.
`class`
`PlayerHarvestBlockEvent`
This event is called whenever a player harvests a block.
`class`
`PlayerHideEntityEvent`
Called when a visible entity is hidden from a player.
`class`
`PlayerInteractAtEntityEvent`
Represents an event that is called when a player right clicks an entity that also contains the location where the entity was clicked.
`class`
`PlayerInteractEntityEvent`
Represents an event that is called when a player right clicks an entity.
`class`
`PlayerInteractEvent`
Represents an event that is called when a player interacts with an object or air, potentially fired once for each hand.
`class`
`PlayerItemBreakEvent`
Fired when a player's item breaks (such as a shovel or flint and steel).
`class`
`PlayerItemConsumeEvent`
This event will fire when a player is finishing consuming an item (food, potion, milk bucket).
`class`
`PlayerItemDamageEvent`
Called when an item used by the player takes durability damage as a result of being used.
`class`
`PlayerItemHeldEvent`
Fired when a player changes their currently held item
`class`
`PlayerItemMendEvent`
Represents when a player has an item repaired via the Mending enchantment.
`class`
`PlayerJoinEvent`
Called when a player joins a server
`class`
`PlayerKickEvent`
Called when a player gets kicked from the server
`class`
`PlayerLevelChangeEvent`
Called when a players level changes
`class`
`PlayerLocaleChangeEvent`
Called when a player changes their locale in the client settings.
`class`
`PlayerLoginEvent`
Stores details for players attempting to log in.
`class`
`PlayerMoveEvent`
Holds information for player movement events
`class`
`PlayerPickupArrowEvent`
Thrown when a player picks up an arrow from the ground.
`class`
`PlayerPickupItemEvent`
Deprecated.
`EntityPickupItemEvent`
`class`
`PlayerPortalEvent`
Called when a player is about to teleport because it is in contact with a portal which will generate an exit portal.
`class`
`PlayerQuitEvent`
Called when a player leaves a server
`class`
`PlayerRecipeDiscoverEvent`
Called when a player discovers a new recipe in the recipe book.
`class`
`PlayerRegisterChannelEvent`
This is called immediately after a player registers for a plugin channel.
`class`
`PlayerResourcePackStatusEvent`
Called when a player takes action on a resource pack request sent via `Player.setResourcePack(java.lang.String)`.
`class`
`PlayerRespawnEvent`
Called when a player respawns.
`class`
`PlayerRiptideEvent`
This event is fired when the player activates the riptide enchantment, using their trident to propel them through the air.
`class`
`PlayerShearEntityEvent`
Called when a player shears an entity
`class`
`PlayerShowEntityEvent`
Called when a hidden entity is shown to a player.
`class`
`PlayerStatisticIncrementEvent`
Called when a player statistic is incremented.
`class`
`PlayerSwapHandItemsEvent`
Called when a player swap items between main hand and off hand using the hotkey.
`class`
`PlayerTakeLecternBookEvent`
This event is called when a player clicks the button to take a book of a Lectern.
`class`
`PlayerTeleportEvent`
Holds information for player teleport events
`class`
`PlayerToggleFlightEvent`
Called when a player toggles their flying state
`class`
`PlayerToggleSneakEvent`
Called when a player toggles their sneaking state
`class`
`PlayerToggleSprintEvent`
Called when a player toggles their sprinting state
`class`
`PlayerUnregisterChannelEvent`
This is called immediately after a player unregisters for a plugin channel.
`class`
`PlayerVelocityEvent`
Called when the velocity of a player changes.

## Uses of PlayerEvent in org.spigotmc.event.player

Subclasses of PlayerEvent in org.spigotmc.event.player
Modifier and Type
Class
Description
`class`
`PlayerSpawnLocationEvent`
Called when player is about to spawn in a world after joining the server.