Velocity icon indicating copy to clipboard operation
Velocity copied to clipboard

Player Loaded World API

Open Timongcraft opened this issue 1 year ago • 2 comments

Requested Feature

An event which is fired when the new minecraft:player_loaded packet is received from the client. This would only be possible in 1.21.4+.

Why is this needed?

To better time actions like titles or play animations and not needing to "guess" when the player is actually in the world.

Timongcraft avatar Dec 03 '24 16:12 Timongcraft

It would probably need security mechanisms to prevent spamming. And, as the packet is also sent on respawn, it would be great if some form of indicator would be provided to show whether the event was triggered from a 'server switch' or 'respawn.'

Timongcraft avatar Dec 03 '24 16:12 Timongcraft

It would probably make sense to not fire an event for the respawn case, as there seems to be no reason to act on it plugin wise, right? That's also how it's done in Paper.

Timongcraft avatar Mar 31 '25 19:03 Timongcraft