public void saveStats() {
		
		Collection<Stat> stats = plugin.statsData.getStats();
		if(stats != null && !stats.isEmpty()) {
			for(Stat stat : stats) {
				String path = "types." + stat.getType() +".";
				this.stats.set(path + "spins", stat.getSpins());
				this.stats.set(path + "won", stat.getLost());
				this.stats.set(path + "lost", stat.getLost());
			}
		}
		
		this.stats.set("global.spins", plugin.statsData.globalSpins);
		this.stats.set("global.won", plugin.statsData.globalWon);
		this.stats.set("global.lost", plugin.statsData.globalLost);
		
		try {
			this.stats.save(statsFile);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}