Interface ServerSideConnectionEvent.Login
-
- All Superinterfaces:
Cancellable,Event,MessageEvent,ServerSideConnectionEvent
- Enclosing interface:
- ServerSideConnectionEvent
public static interface ServerSideConnectionEvent.Login extends ServerSideConnectionEvent, MessageEvent, Event, Cancellable
Called after the server finished its handshake with the client.Note: This event is fired after #Auth and is NOT async. Any changes required for the
playerslocationorrotationshould be done during this event and NOT during #Join.If the registered
BanServiceorWhitelistServiceindicates that a player should not be allowed to join (GameProfileorInetAddresshas an ban, or is not on the whitelist), then this event will automatically cancelled by the implementation, with the proper message set throughMessageEvent.setMessage(Component). No action on the part of the registeredBanServiceorWhitelistServiceis 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 org.spongepowered.api.event.network.ServerSideConnectionEvent
ServerSideConnectionEvent.Auth, ServerSideConnectionEvent.Disconnect, ServerSideConnectionEvent.Handshake, ServerSideConnectionEvent.Join, ServerSideConnectionEvent.Login
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerLocationfromLocation()Vector3dfromRotation()voidsetToLocation(ServerLocation location)voidsetToRotation(Vector3d rotation)ServerLocationtoLocation()Vector3dtoRotation()Useruser()Gets theUser.-
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
Methods inherited from interface org.spongepowered.api.event.message.MessageEvent
message, originalMessage, setMessage
-
Methods inherited from interface org.spongepowered.api.event.network.ServerSideConnectionEvent
connection, profile
-
-
-
-
Method Detail
-
fromLocation
ServerLocation fromLocation()
- Returns:
- The location
-
toLocation
ServerLocation toLocation()
- Returns:
- The location
-
setToLocation
void setToLocation(ServerLocation location)
- Parameters:
location- The location
-
fromRotation
Vector3d fromRotation()
- Returns:
- The rotation
-
toRotation
Vector3d toRotation()
- Returns:
- The rotation
-
setToRotation
void setToRotation(Vector3d rotation)
- Parameters:
rotation- The rotation
-
-