Interface ServerPreConnectEvent

    • Method Detail

      • player

        Player player()
        Returns the player connecting to the server.
        Returns:
        the player connecting to the server
      • originalTarget

        RegisteredServer originalTarget()
        Returns the server that the player originally tried to connect to. To get the server the player will connect to, see the ServerPreConnectEvent.ServerResult of this event. To get the server the player is currently on when this event is fired, use Player.connectedServer().
        Returns:
        the server that the player originally tried to connect to
      • reject

        default void reject()