onSetProtocol - TheIronG/Nodecraft GitHub Wiki

onSetProtocol(sender, packet)

Packet data:

  • protocolVersion: Protocol version for the server (1.12.2 = 340)
  • serverHost: The server host
  • serverPort: The server port
  • nextState: Clients next state (1 for status, 2 for play)

Description

Emitted when a client sends a handshake packet, either for the server list ping or for the server join ping

⚠️ **GitHub.com Fallback** ⚠️