Interface ServerSideConnectionEvent.Login
- All Superinterfaces:
Cancellable, Event, MessageEvent, ServerSideConnectionEvent, ServerSideConnectionEvent.ProfileScoped
- Enclosing interface:
ServerSideConnectionEvent
public static interface ServerSideConnectionEvent.Login
extends ServerSideConnectionEvent.ProfileScoped, MessageEvent, Cancellable
Called after the server finished its configuration with the client.
Note: This event is fired after #Configuration and is NOT async. Any changes
required for the players location
or rotation should be done during this event and NOT
during #Join.
If the registered BanService or WhitelistService
indicates that a player should not be allowed to join (
GameProfile or InetAddress has an ban, or is not on the
whitelist), then this event will automatically cancelled by the
implementation, with the proper message set through
MessageEvent.setMessage(Component). No action on the part
of the registered BanService or WhitelistService is
required for this to occur.
Plugins may uncancel the event to allow a client to join, regardless of its ban/whitelist status.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServerSideConnectionEvent
ServerSideConnectionEvent.Auth, ServerSideConnectionEvent.Configuration, ServerSideConnectionEvent.Disconnect, ServerSideConnectionEvent.Handshake, ServerSideConnectionEvent.Intent, ServerSideConnectionEvent.Join, ServerSideConnectionEvent.Leave, ServerSideConnectionEvent.Login, ServerSideConnectionEvent.ProfileScoped -
Method Summary
Modifier and TypeMethodDescriptionvoidsetToLocation(ServerLocation location) voidsetToRotation(Vector3d rotation) user()Gets theUser.Methods inherited from interface Cancellable
isCancelled, setCancelledMethods inherited from interface MessageEvent
message, originalMessage, setMessageMethods inherited from interface ServerSideConnectionEvent
connectionMethods inherited from interface ServerSideConnectionEvent.ProfileScoped
profile
-
Method Details
-
user
-
fromLocation
ServerLocation fromLocation()- Returns:
- The location
-
toLocation
-
setToLocation
- Parameters:
location- The location
-
fromRotation
-
toRotation
-
setToRotation
-