Class SessionManager

java.lang.Object
org.geysermc.geyser.session.SessionManager

public final class SessionManager extends Object
  • Constructor Details

    • SessionManager

      public SessionManager()
  • Method Details

    • addPendingSession

      public void addPendingSession(GeyserSession session)
      Called once the player has successfully authenticated to the Geyser server.
    • addSession

      public void addSession(UUID uuid, GeyserSession session)
      Called once a player has successfully logged into their Java server.
    • removeSession

      public void removeSession(GeyserSession session)
    • getAllSessions

      public List<GeyserSession> getAllSessions()
      Creates a new, immutable list containing all pending and active sessions.
    • disconnectAll

      public void disconnectAll(String message)
    • size

      public int size()
      Returns:
      the total amount of sessions, including those pending.
    • getSessions

      public Map<UUID,​GeyserSession> getSessions()
      A list of all players who are currently in-game.