Class SessionDisconnectEvent
java.lang.Object
org.geysermc.geyser.event.GeyserEvent
org.geysermc.geyser.event.events.network.SessionDisconnectEvent
- All Implemented Interfaces:
EventSession
Triggered when a session is disconnected
-
Constructor Summary
ConstructorDescriptionSessionDisconnectEvent(@NonNull GeyserSession session, @NonNull com.nukkitx.network.util.DisconnectReason disconnectReason)
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
@NonNull com.nukkitx.network.util.DisconnectReason
The reason for the disconnection@NonNull GeyserSession
Return theGeyserSession
for this Eventint
hashCode()
toString()
-
Constructor Details
-
SessionDisconnectEvent
public SessionDisconnectEvent(@NonNull @NonNull GeyserSession session, @NonNull @NonNull com.nukkitx.network.util.DisconnectReason disconnectReason)
-
-
Method Details
-
getSession
Description copied from interface:EventSession
Return theGeyserSession
for this Event- Specified by:
getSession
in interfaceEventSession
- Returns:
- the current session
-
getDisconnectReason
@NonNull public @NonNull com.nukkitx.network.util.DisconnectReason getDisconnectReason()The reason for the disconnection- Returns:
- the reason
-
toString
- Overrides:
toString
in classGeyserEvent
-
equals
- Overrides:
equals
in classGeyserEvent
-
canEqual
- Overrides:
canEqual
in classGeyserEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classGeyserEvent
-