Skip to content

event onPacket (server-side)

This event is triggered when new packet arrives from the client.

Parameters

int playerid, Packet packet
  • int playerid: the id of the player who sent the packet.
  • Packet packet: data sended over network from client side.