Class SessionDisconnectEvent
java.lang.Object
org.geysermc.geyser.api.event.connection.ConnectionEvent
org.geysermc.geyser.api.event.bedrock.SessionDisconnectEvent
- All Implemented Interfaces:
org.geysermc.event.Event
Called when a Geyser session disconnects.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionDisconnectEvent(@NonNull GeyserConnection connection, @NonNull String reason) -
Method Summary
Modifier and TypeMethodDescription@NonNull StringGets the disconnect reason.voiddisconnectReason(@NonNull String disconnectReason) Sets the disconnect reason, thereby overriding th original reason.Methods inherited from class org.geysermc.geyser.api.event.connection.ConnectionEvent
connection
-
Constructor Details
-
SessionDisconnectEvent
-
-
Method Details
-
disconnectReason
Gets the disconnect reason.- Returns:
- the reason for the disconnect
-
disconnectReason
Sets the disconnect reason, thereby overriding th original reason.- Parameters:
disconnectReason- the reason for the disconnect
-