Class ServerConnectedEvent


  • @AwaitingEvent
    public final class ServerConnectedEvent
    extends Object
    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 Detail

      • ServerConnectedEvent

        public ServerConnectedEvent​(Player player,
                                    RegisteredServer server,
                                    @Nullable RegisteredServer previousServer)
        Constructs a ServerConnectedEvent.
        Parameters:
        player - the player that was connected
        server - the server the player was connected to
        previousServer - the server the player was previously connected to, null if none