public void sendPacket(Packet pt, Object[] params) throws Exception{
		Packet packet = pt.getClass().getConstructor().newInstance();
		packet.setID(packetList.size());
		packet.setParameters(params);
		packetList.add(packet);
		packet.send(out);
	}