Class SessionAddedEvent

java.lang.Object
org.geysermc.mcprotocollib.network.event.server.SessionAddedEvent
All Implemented Interfaces:
ServerEvent

public class SessionAddedEvent extends Object implements ServerEvent
Called when a session is added to the server.
  • Constructor Details

    • SessionAddedEvent

      public SessionAddedEvent(Server server, Session session)
      Creates a new SessionAddedEvent instance.
      Parameters:
      server - Server the session is being added to.
      session - Session being added.
  • Method Details

    • getServer

      public Server getServer()
      Gets the server involved in this event.
      Returns:
      The event's server.
    • getSession

      public Session getSession()
      Gets the session involved in this event.
      Returns:
      The event's session.
    • call

      public void call(ServerListener listener)
      Description copied from interface: ServerEvent
      Calls the event.
      Specified by:
      call in interface ServerEvent
      Parameters:
      listener - Listener to call the event on.