Package net.md_5.bungee.api.event

# 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 Summary

  Constructors
  Constructor
  Description
  `ServerConnectedEvent(ProxiedPlayer player, Server server)`
  Creates a new `ServerConnectedEvent` instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected boolean`
  `canEqual(Object other)`
  `boolean`
  `equals(Object o)`
  `ProxiedPlayer`
  `getPlayer()`
  Player whom the server is for.
  `Server`
  `getServer()`
  The server itself.
  `int`
  `hashCode()`
  `String`
  `toString()`

  ### Methods inherited from class net.md_5.bungee.api.plugin.Event

  `postCall`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### ServerConnectedEvent

    public ServerConnectedEvent(ProxiedPlayer player, Server server)
    Creates a new `ServerConnectedEvent` instance.
    Parameters:
      `player` - Player whom the server is for.
      `server` - The server itself.

- ## 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`