public long logOnlinePlayers(long lastMillis) {
		int onlinePlayersLogTime = conf.getInt("TimeBetweenOnlinePlayersLog", 15);
    	Format sdf = new SimpleDateFormat("mm");
    	
		if (60 % onlinePlayersLogTime == 0) {
			
	    	if (onlinePlayersLogTime > 59) {
	    		onlinePlayersLogTime = 0;
	    	}
	    	
        	String time = sdf.format(new Date());
        	long currentMillis = System.currentTimeMillis() / 60000;
	        if (Integer.parseInt(time) % onlinePlayersLogTime == 0 && lastMillis != currentMillis) {
        		makeFile();
        		lastMillis = currentMillis;
	        }
		}
		else {
			log.warning(LarvikGaming.name + "TimeBetweenOnlinePlayersLog is not a valid number! Disabled!");
		}
		return lastMillis;
	}