# Package org.bukkit.event.player

package org.bukkit.event.player
`Events` relating to `players`.

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