Class SessionDisconnectEvent

java.lang.Object
org.geysermc.geyser.event.GeyserEvent
org.geysermc.geyser.event.events.network.SessionDisconnectEvent
All Implemented Interfaces:
EventSession

public class SessionDisconnectEvent extends GeyserEvent implements EventSession
Triggered when a session is disconnected
  • Constructor Details

    • SessionDisconnectEvent

      public SessionDisconnectEvent(@NonNull @NonNull GeyserSession session, @NonNull @NonNull com.nukkitx.network.util.DisconnectReason disconnectReason)
  • Method Details

    • getSession

      @NonNull public @NonNull GeyserSession getSession()
      Description copied from interface: EventSession
      Return the GeyserSession for this Event
      Specified by:
      getSession in interface EventSession
      Returns:
      the current session
    • getDisconnectReason

      @NonNull public @NonNull com.nukkitx.network.util.DisconnectReason getDisconnectReason()
      The reason for the disconnection
      Returns:
      the reason
    • toString

      public String toString()
      Overrides:
      toString in class GeyserEvent
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class GeyserEvent
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class GeyserEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class GeyserEvent