Velocity
Velocity copied to clipboard
Player Loaded World API
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.
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.'
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.