Interface ServerSideConnectionEvent.Join
- All Superinterfaces:
AudienceMessageEvent
,Event
,MessageCancellable
,MessageEvent
,ServerSideConnectionEvent
,ServerSideConnectionEvent.ProfileScoped
- Enclosing interface:
ServerSideConnectionEvent
public static interface ServerSideConnectionEvent.Join
extends ServerSideConnectionEvent.ProfileScoped, AudienceMessageEvent, MessageCancellable
Called when a
player
joins the game within a
world
for the first time after the configuration phase.
Fired after ServerSideConnectionEvent.Login
once the player
has been
properly added to the ServerWorld
. If data is wanted to be
modified that could affect a player's representation (such as vanishing),
it's recommended to modify such data in the logging in
User
instead.-
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
Methods inherited from interface org.spongepowered.api.event.message.AudienceMessageEvent
audience, filterAudience, originalAudience, setAudience
Methods inherited from interface org.spongepowered.api.event.message.MessageCancellable
isMessageCancelled, setMessageCancelled
Methods inherited from interface org.spongepowered.api.event.message.MessageEvent
message, originalMessage, setMessage
Methods inherited from interface org.spongepowered.api.event.network.ServerSideConnectionEvent
connection
Methods inherited from interface org.spongepowered.api.event.network.ServerSideConnectionEvent.ProfileScoped
profile
-
Method Details
-
player
ServerPlayer player()Gets theplayer
.- Returns:
- The player
-