- All Superinterfaces:
- All Known Subinterfaces:
public interface ServerSideConnectionEvent extends EventRepresents an event fired during the login process.
These events represent the progression of a
playerfrom first authenticating, to being fully loaded in the world.
The events are fired in the following order:
#Auth -> #Handshake -> #Login -> #Join
Traditionally one could consider a
SpawnEntityEventto be thrown, but due to the nature of cancellations, a
playerjoining a world after
loginwould be inadvisable to cancel due to the inconsistent state of both the player and the player's client.
Nested Class Summary
Nested Classes Modifier and Type Interface Description
ServerSideConnectionEvent.AuthCalled asynchronously when the client attempts to authenticate against the server.
ServerSideConnectionEvent.DisconnectCalled when a
playerdisconnects from the game.
ServerSideConnectionEvent.HandshakeCalled after the client authenticates and attempts to login to the server.
ServerSideConnectionEvent.LoginCalled after the server finished its handshake with the client.
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description
GameProfileof the client attempting to connect.