handlePacket

Handles a UDP packet received from the player.

Parameters

packet

The UDP packet to handle.