public final class ServerConnectedEvent extends ObjectThis event is fired once the player has successfully connected to the target server and the connection to the previous server has been de-established.
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
public ServerConnectedEvent(Player player, RegisteredServer server, @Nullable RegisteredServer previousServer)Constructs a ServerConnectedEvent.
player- the player that was connected
server- the server the player was connected to
previousServer- the server the player was previously connected to, null if none