event
onPacket (server-side)
Available since version: 0.0.3
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.