public void save() {
		plugin.getSave().getCustomConfig().set("lottery.jackpot", jackpotCurrent);
		plugin.getSave().getCustomConfig().set("lottery.drawsSinceLastWin", drawsSinceLastWin);
		
		if(range!=-1){
			for (int i = 0; i < range; i++) {
				ArrayList<String> tmp = new ArrayList<String>();
				for (String p : tickets.get(i)) {
					tmp.add(p);
				}
				plugin.getSave().getCustomConfig().set("lottery.tickets." + i, tmp);
			}
		}else{
			int i=0;
			while(!tickets.get(i).isEmpty()){
				ArrayList<String> tmp = new ArrayList<String>();
				for (String p : tickets.get(i)) {
					tmp.add(p);
				}
				plugin.getSave().getCustomConfig().set("lottery.tickets." + i, tmp);
				i++;
			}
			
		}
		plugin.getSave().getCustomConfig().set("stats.total-draws", totalDraws);
		plugin.getSave().getCustomConfig().set("stats.total-tickets", totalTickets);
		plugin.getSave().getCustomConfig().set("stats.total-wins", totalWins);
		plugin.getSave().getCustomConfig().set("stats.total-winners", totalWinners);
		plugin.getSave().getCustomConfig().set("stats.total-amount-won", totalAmountWon);
		

		ArrayList<String> list=new ArrayList<>();
		for(String p:playerStats.keySet()){
			list.add(p+":"+playerStats.get(p));
		}
		plugin.getSave().getCustomConfig().set("playerStats", list);
		
		plugin.getSave().saveCustomConfig();

	}