Class ServerConnectedEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
net.md_5.bungee.api.event.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 Details

  • Method Details

    • getPlayer

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

      public Server getServer()
      The server itself.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object