Class PlayerChooseInitialServerEvent

  • public class PlayerChooseInitialServerEvent
    extends Object
    Fired when a player has finished connecting to the proxy and we need to choose the first server to connect to.
    • Constructor Detail

      • PlayerChooseInitialServerEvent

        public PlayerChooseInitialServerEvent​(Player player,
                                              @Nullable RegisteredServer initialServer)
        Constructs a PlayerChooseInitialServerEvent.
        player - the player that was connected
        initialServer - the initial server selected, may be null
    • Method Detail

      • getPlayer

        public Player getPlayer()
      • setInitialServer

        public void setInitialServer​(RegisteredServer server)
        Sets the new initial server.
        server - the initial server the player should connect to