Class PlayerChooseInitialServerEvent
java.lang.Object
com.velocitypowered.api.event.player.PlayerChooseInitialServerEvent
Fired when a player has finished connecting to the proxy and we need to choose the first server
to connect to.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerChooseInitialServerEvent(Player player, @Nullable RegisteredServer initialServer) Constructs a PlayerChooseInitialServerEvent. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetInitialServer(RegisteredServer server) Sets the new initial server.toString()
-
Constructor Details
-
PlayerChooseInitialServerEvent
Constructs a PlayerChooseInitialServerEvent.- Parameters:
player- the player that was connectedinitialServer- the initial server selected, may benull
-
-
Method Details