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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the disconnect reason.voiddisconnectReason(String disconnectReason) Sets the disconnect message shown to the Bedrock client.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 message shown to the Bedrock client.- Parameters:
disconnectReason- the reason for the disconnect
-