Interface ServerSideConnectionEvent.Leave
- All Superinterfaces:
AudienceMessageEvent
,Event
,MessageCancellable
,MessageEvent
,ServerSideConnectionEvent
,ServerSideConnectionEvent.ProfileScoped
- Enclosing interface:
ServerSideConnectionEvent
public static interface ServerSideConnectionEvent.Leave
extends ServerSideConnectionEvent.ProfileScoped, AudienceMessageEvent, MessageCancellable
Called when a
player
leaves from the world. The
connection
might not be closed yet as the
client could have transitioned back to the configuration state.-
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
-