Class ServerConnectedEvent
java.lang.Object
com.velocitypowered.api.event.player.ServerConnectedEvent
This event is fired once the player has successfully connected to the target server and the
connection to the previous server has been de-established.
Note: For historical reasons, Velocity does wait on this event to finish firing before continuing the server connection process. This behavior is deprecated and likely to be removed in Polymer.
-
Constructor Summary
ConstructorDescriptionServerConnectedEvent
(Player player, RegisteredServer server, @Nullable RegisteredServer previousServer) Constructs a ServerConnectedEvent. -
Method Summary
-
Constructor Details
-
ServerConnectedEvent
public ServerConnectedEvent(Player player, RegisteredServer server, @Nullable RegisteredServer previousServer) Constructs a ServerConnectedEvent.- Parameters:
player
- the player that was connectedserver
- the server the player was connected topreviousServer
- the server the player was previously connected to, null if none
-
-
Method Details