public void updateCoupon(Coupon coupon) throws SQLException {
		sql.query("UPDATE couponcodes SET usetimes='"+coupon.getUseTimes()+"' WHERE name='"+coupon.getName()+"'");
		sql.query("UPDATE couponcodes SET usedplayers='"+plugin.convertHashToString2(coupon.getUsedPlayers())+"' WHERE name='"+coupon.getName()+"'");
		sql.query("UPDATE couponcodes SET timeuse='"+coupon.getTime()+"' WHERE name='"+coupon.getName()+"'");
		
		if (coupon instanceof ItemCoupon)
			sql.query("UPDATE couponcodes SET ids='"+plugin.convertHashToString(((ItemCoupon) coupon).getIDs())+"' WHERE name='"+coupon.getName()+"'");
		else if (coupon instanceof EconomyCoupon)
			sql.query("UPDATE couponcodes SET money='"+((EconomyCoupon) coupon).getMoney()+"' WHERE name='"+coupon.getName()+"'");
		else if (coupon instanceof RankCoupon)
			sql.query("UPDATE couponcodes SET groupname='"+((RankCoupon) coupon).getGroup()+"' WHERE name='"+coupon.getName()+"'");
		else if (coupon instanceof XpCoupon)
			sql.query("UPDATE couponcodes SET xp='"+((XpCoupon) coupon).getXp()+"' WHERE name='"+coupon.getName()+"'");
	}