Class ServerPreConnectEvent

    • Constructor Detail

      • ServerPreConnectEvent

        public ServerPreConnectEvent​(Player player,
                                     RegisteredServer originalServer)
        Creates the ServerPreConnectEvent.
        Parameters:
        player - the player who is connecting to a server
        originalServer - the server the player was trying to connect to
      • ServerPreConnectEvent

        public ServerPreConnectEvent​(Player player,
                                     RegisteredServer originalServer,
                                     @Nullable RegisteredServer previousServer)
        Creates the ServerPreConnectEvent.
        Parameters:
        player - the player who is connecting to a server
        originalServer - the server the player was trying to connect to
        previousServer - the server the player ís connected to