pocketmine\event\player
Classes
| Name | Kind | Summary |
|---|---|---|
| PlayerBedEnterEvent | class | |
| PlayerBedLeaveEvent | class | |
| PlayerBlockPickEvent | class | Called when a player middle-clicks on a block to get an item in creative mode |
| PlayerBucketEmptyEvent | class | |
| PlayerBucketEvent | class | |
| PlayerBucketFillEvent | class | |
| PlayerChangeSkinEvent | class | Called when a player changes their skin in-game |
| PlayerChatEvent | class | Called when a player chats something |
| PlayerCreationEvent | class | Allows the use of custom Player classes |
| PlayerDataSaveEvent | class | Called when a player's data is about to be saved to disk |
| PlayerDeathEvent | class | |
| PlayerDisconnectEventTrait | trait | |
| PlayerDisplayNameChangeEvent | class | |
| PlayerDropItemEvent | class | Called when a player tries to drop an item |
| PlayerDuplicateLoginEvent | class | Called when a player connects with a username or UUID that is already used by another player on the server |
| PlayerEditBookEvent | class | |
| PlayerEmoteEvent | class | Called when a player uses an emote |
| PlayerEnchantingOptionsRequestEvent | class | Called when a player inserts an item into an enchanting table's input slot |
| PlayerEntityInteractEvent | class | Called when a player interacts with an entity (e |
| PlayerEntityPickEvent | class | Called when a player middle-clicks on an entity to get an item in creative mode |
| PlayerEvent | class | |
| PlayerExhaustEvent | class | |
| PlayerExperienceChangeEvent | class | Called when a player gains or loses XP levels and/or progress |
| PlayerGameModeChangeEvent | class | Called when a player has its gamemode changed |
| PlayerInteractEvent | class | Called when a player interacts or touches a block |
| PlayerItemConsumeEvent | class | Called when a player eats something |
| PlayerItemEnchantEvent | class | Called when a player enchants an item using an enchanting table |
| PlayerItemHeldEvent | class | Called when a player's held item changes |
| PlayerItemUseEvent | class | Called when a player uses its held item, for example when throwing a projectile |
| PlayerJoinEvent | class | Called when the player spawns in the world after logging in, when they first see the terrain |
| PlayerJumpEvent | class | Called when a player jumps |
| PlayerKickEvent | class | Called when a player is kicked (forcibly disconnected) from the server, e |
| PlayerLoginEvent | class | Called after the player has successfully authenticated, before it spawns |
| PlayerMissSwingEvent | class | Called when a player attempts to perform the attack action (left-click) without a target entity |
| PlayerMoveEvent | class | |
| PlayerPostChunkSendEvent | class | Called after a player is sent a chunk as part of their view radius |
| PlayerPreLoginEvent | class | Called when a player connects to the server, prior to authentication taking place |
| PlayerProxyTransferEvent 5.46.0 | class | Called when a player of this server is about to be moved to another server of the pm-proxy network |
| PlayerQuitEvent | class | Called when a player disconnects from the server for any reason |
| PlayerResourcePackOfferEvent | class | Called after a player authenticates and is being offered resource packs to download |
| PlayerRespawnAnchorUseEvent | class | |
| PlayerRespawnEvent | class | Called when a player is respawned |
| PlayerToggleFlightEvent | class | |
| PlayerToggleGlideEvent | class | |
| PlayerToggleSneakEvent | class | |
| PlayerToggleSprintEvent | class | |
| PlayerToggleSwimEvent | class | |
| PlayerTransferEvent | class | Called when a player attempts to be transferred to another server, e |
| PlayerViewDistanceChangeEvent | class | Called when a player requests a different viewing distance than the current one |
