Interface ServerSideConnectionEvent
- All Superinterfaces:
Event
- All Known Subinterfaces:
ServerSideConnectionEvent.Auth,ServerSideConnectionEvent.Disconnect,ServerSideConnectionEvent.Handshake,ServerSideConnectionEvent.Join,ServerSideConnectionEvent.Login
Represents an event fired during the login process.
These events represent the progression of a player
from 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 SpawnEntityEvent to be thrown,
but due to the nature of cancellations, a player joining
a world after login would be inadvisable to cancel due to the
inconsistent state of both the player and the player's client.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCalled asynchronously when the client attempts to authenticate against the server.static interfaceCalled when aplayerdisconnects from the game.static interfaceCalled after the client authenticates and attempts to login to the server.static interfacestatic interfaceCalled after the server finished its handshake with the client. -
Method Summary
Modifier and TypeMethodDescriptionGets theServerSideConnection.default GameProfileprofile()Gets theGameProfileof the client attempting to connect.
-
Method Details
-
connection
ServerSideConnection connection()Gets theServerSideConnection.- Returns:
- The server side connection
-
profile
Gets theGameProfileof the client attempting to connect.- Returns:
- The client's profile
-