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

public class SessionDisconnectEvent extends ConnectionEvent
Called when a Geyser session disconnects.
  • Constructor Details

  • Method Details

    • disconnectReason

      public String disconnectReason()
      Gets the disconnect reason.
      Returns:
      the reason for the disconnect
    • disconnectReason

      public void disconnectReason(String disconnectReason)
      Sets the disconnect message shown to the Bedrock client.
      Parameters:
      disconnectReason - the reason for the disconnect