public class ServerConnectedEvent extends Event
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 and Description |
---|
ServerConnectedEvent(ProxiedPlayer player,
Server server) |
Modifier and Type | Method and 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() |
public ServerConnectedEvent(ProxiedPlayer player, Server server)
public ProxiedPlayer getPlayer()
public Server getServer()
protected boolean canEqual(Object other)
Copyright © 2012–2020 SpigotMC. All rights reserved.