Class ConnectionHandshakeEvent

java.lang.Object
com.velocitypowered.api.event.connection.ConnectionHandshakeEvent

public final class ConnectionHandshakeEvent extends Object
This event is fired when a handshake is established between a client and the proxy. Velocity will fire this event asynchronously and will not wait for it to complete before handling the connection.
  • Constructor Details

  • Method Details

    • getConnection

      public InboundConnection getConnection()
      Returns the inbound connection associated with this handshake.
      Returns:
      the connection
    • getIntent

      public HandshakeIntent getIntent()
      Returns the HandshakeIntent associated with this connection handshake.
      Returns:
      the intent of the handshake
    • toString

      public String toString()
      Overrides:
      toString in class Object