Interface ServerSideConnectionEvent.Disconnect
- All Superinterfaces:
Event
,ServerSideConnectionEvent
- Enclosing interface:
ServerSideConnectionEvent
Called when a
connection
disconnects from the game.
Note: This event might be called asynchronously. Additionally, the connection might have not got past #Auth.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.network.ServerSideConnectionEvent
ServerSideConnectionEvent.Auth, ServerSideConnectionEvent.Configuration, ServerSideConnectionEvent.Disconnect, ServerSideConnectionEvent.Handshake, ServerSideConnectionEvent.Intent, ServerSideConnectionEvent.Join, ServerSideConnectionEvent.Leave, ServerSideConnectionEvent.Login, ServerSideConnectionEvent.ProfileScoped
-
Method Summary
Modifier and TypeMethodDescriptionprofile()
Gets theGameProfile
of the client if it got past authentication.Methods inherited from interface org.spongepowered.api.event.network.ServerSideConnectionEvent
connection
-
Method Details
-
profile
Optional<GameProfile> profile()Gets theGameProfile
of the client if it got past authentication.- Returns:
- The client's profile
-