Class ServerConnectedEvent


  • public class ServerConnectedEvent
    extends Event
    Not to be confused with ServerConnectEvent, this event is called once a connection to a server is fully operational, and is about to hand over control of the session to the player. It is useful if you wish to send information to the server before the player logs in.
    • Constructor Detail

    • Method Detail

      • getPlayer

        public ProxiedPlayer getPlayer()
        Player whom the server is for.
      • getServer

        public Server getServer()
        The server itself.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object