Handle all cases of the packet in NMS.java