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 withServerConnectEvent
, 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)
-
Method Summary
All Methods Instance Methods Concrete Methods 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()
-
-
-
Constructor Detail
-
ServerConnectedEvent
public ServerConnectedEvent(ProxiedPlayer player, Server server)
-
-
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)
-
-