Class PlayerLoginEvent


@Deprecated(since="1.21.6") public class PlayerLoginEvent extends PlayerEvent
Deprecated.
Use PlayerConnectionValidateLoginEvent to handle pre-login logic (e.g. authentication or ban checks), or PlayerServerFullCheckEvent to allow players to bypass the server's maximum player limit. Minecraft triggers this twice internally, using this event skips one of the validation checks done by the server. Additionally, this event causes the full player entity to be created much earlier than it would be in Vanilla, leaving it with mostly disfunctional methods and state.
Stores details for players attempting to log in.
Note that this event is called early in the player initialization process. It is recommended that most options involving the Player entity be postponed to the PlayerJoinEvent instead.