Class ServerConnectedEvent

  • 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.
    • Constructor Detail

      • ServerConnectedEvent

        public ServerConnectedEvent​(Player player,
                                    RegisteredServer server,
                                    @Nullable RegisteredServer previousServer)
        Constructs a ServerConnectedEvent.
        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