Package org.geysermc.geyser.session
Class SessionManager
java.lang.Object
org.geysermc.geyser.session.SessionManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPendingSession(GeyserSession session) Called once the player has successfully authenticated to the Geyser server.voidaddSession(UUID uuid, GeyserSession session) Called once a player has successfully logged into their Java server.voiddisconnectAll(String message) Creates a new, immutable list containing all pending and active sessions.A list of all players who are currently in-game.voidremoveSession(GeyserSession session) @Nullable GeyserSessionsessionByXuid(@NonNull String xuid) intsize()
-
Constructor Details
-
SessionManager
public SessionManager()
-
-
Method Details
-
addPendingSession
Called once the player has successfully authenticated to the Geyser server. -
addSession
Called once a player has successfully logged into their Java server. -
removeSession
-
sessionByXuid
-
getAllSessions
Creates a new, immutable list containing all pending and active sessions. -
disconnectAll
-
size
public int size()- Returns:
- the total amount of sessions, including those pending.
-
getSessions
A list of all players who are currently in-game.
-