public void addTime(String playerName, int time, DB_Timers timer) {
		String message, bmessage;
		Integer timerID = timer.getId();
		String st_time = this.plugin.util.formatTime(Integer.valueOf(time));
		DB_Times data = this.plugin.database.getDatabase().find(DB_Times.class).where().ieq("Playername", playerName).where().eq("TimerID", timerID).findUnique();
		if (data == null) {
			data = new DB_Times();
			data.setPlayername(playerName);
			data.setTime(time);
			data.setTimerID(timerID);
			message = "Your time has been saved.";
			bmessage = "It was their first time.";
			this.plugin.database.getDatabase().save(data);
		}
		else {
			Long savedTime = data.getTime();
			
			if (time < savedTime) {
				message = "New personal best. " + st_time;
				bmessage = "with a new personal best of " + st_time;
				data.setTime(time);
				this.plugin.database.getDatabase().save(data);
			}
			else if (time == savedTime) {
				message = "You matched your best time of " + st_time;
				bmessage = "They matched their best time of " + st_time;
			}
			else {
				Integer difference = (int) (time - savedTime);
				String fasterTime = this.plugin.util.formatTime(difference);
				message = "Your old time was " + fasterTime + " faster.";
				bmessage = "which was " + fasterTime + " slower.";
			}
		}
		if (this.plugin.broadcast_times) {
			this.plugin.util.broadcast(bmessage);
		}
		else {
			this.plugin.util.messagePlayer(playerName, message);
		}
		
		this.updateRanks(timer, false);
		
	}