private static void PACKET_NETSPAWN(long connectionID, byte[] data) { ByteBuffer buffer = new ByteBuffer(); buffer.WriteBytes(data); long packetnum = buffer.ReadLong(); string slug = buffer.ReadString(); float x = buffer.ReadFloat(); float y = buffer.ReadFloat(); float z = buffer.ReadFloat(); float rotX = buffer.ReadFloat(); float rotY = buffer.ReadFloat(); float rotZ = buffer.ReadFloat(); float rotW = buffer.ReadFloat(); ServerTCP.SendNetSpawnRequest((int)connectionID, slug, x, y, z, rotX, rotY, rotZ, rotW); buffer.Dispose(); }