Package org.geysermc.geyser.session
Class SessionManager
java.lang.Object
org.geysermc.geyser.session.SessionManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPendingSession(GeyserSession session)
Called once the player has successfully authenticated to the Geyser server.void
addSession(UUID uuid, GeyserSession session)
Called once a player has successfully logged into their Java server.void
disconnectAll(String message)
Creates a new, immutable list containing all pending and active sessions.A list of all players who are currently in-game.void
removeSession(GeyserSession session)
int
size()
-
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
-
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.
-