Package net.minestom.server.event.player
package net.minestom.server.event.player
-
ClassDescriptionCalled when a
Player
opens the advancement screens or switch the tab and when he closes the screen.Called when a player enters the configuration state (either on first connection, or if they are sent back to configuration later).Called before the player initialization, it can be used to kick the player before any connection or to change his final username/uuid.Called when a player interacts with a block (right-click).Called when a player tries placing a block.Called when aPlayer
stops digging a block before it is brokenCalled when a player change his held slot (by pressing 1-9 keys).Called every time aPlayer
write and send something in the chat.Called when a player receive a new chunk data.Called after a chunk being unload to a certain player.Called every time a player send a message starting by '/'.Called when a player die inPlayer.kill()
.Called when a player disconnect.Called when a player is finished eating.Called when aPlayer
successfully finishes digging a blockCalled when the gamemode of a player is being modified.Called when the player swings his hand.Used when aPlayer
finish the animation of an item.Called when a player is modifying his position.Listen to outgoing packets asynchronously.Called when a player sendClientPluginMessagePacket
.Called before the PlayerEatEvent and can be used to change the eating time or to cancel its processing, cancelling the event means that the player will continue the animation indefinitely.Called when a player warns the server of a resource pack status.Called whenPlayer.respawn()
is executed (for custom respawn or as a result ofClientStatusPacket
Called after the player signals the server that his settings has been modified.Called at the player connection to initialize his skin.Called when a new instance is set for a player.Called by the SpectateListener when a player starts spectating an entity.Called when a player start flying.Called when a player starts sneaking.Called when a player starts sprinting.Called when a player stop flying.Called when a player stops sneaking.Called when a player stops sprinting.Called when a player is trying to swap his main and off hand item.Called at each player tick.Event when an item is used without clicking on a block.Used when a player is clicking on a block with an item (but is not a block in item form).Deprecated.