Hello, today I basically made the following:

Code:
			if (playerCommand.startsWith("vote") && voted==true) {
			c.sendMessage("You have allready voted today.");
			}
			if (playerCommand.startsWith("vote") && voted==false) {
//WILL OPEN WEBSITE LATER
			c.sendMessage("You may now do ::claim for your reward!");
			voted = true;
			}
			if (playerCommand.startsWith("claim") && voted==false) {
			c.sendMessage("You have not voted.");
			}
			if (playerCommand.startsWith("claim") && voted==true) {
			if (!Connection.hasVoted(Server.playerHandler.players[c.playerId].connectedFrom)) {
			c.getItems().addItem(6199, 1);
			c.sendMessage("Thank you for voting Creation");
			c.sendMessage("You have received a Mystery Box.");
						c.VoteTimer = 86400; //24 hours
			Connection.addIpToVote(Server.playerHandler.players[c.playerId].connectedFrom);
			Connection.addIpToVoteList(Server.playerHandler.players[c.playerId].connectedFrom);
			} else {
			c.sendMessage("You have already voted today.");
			}
What this does for me is allows me to type ::reward in-game, after doing this if I have not voted, it will say I have not voted, then if I do ::vote, and then ::reward it will properly give the items to me and it sets a timer
Code:
						c.VoteTimer = 86400; //24 hours
This timer is supposed to run for 86400 seconds, or 24 hours (which is how long I want it to be before they are able to vote again).
Code:
			if (VoteTimer==0)
			Connection.VoteRenewal(Server.playerHandler.players[playerId].connectedFrom);
			if(VoteTimer > 0)
			VoteTimer --;
How I go about doing this is I use Connection class to have their ip in a .txt and then after 24 hours under process() in my client.java like shown above, is once the VoteTimer of 86400 reaches 0, it removes the ip from the list and when they next do ::vote and ::check they are able to sucessfully carry this out.

THE PROBLEM: If a player logs out, it resets the timer, so next time they login according to what it should do under process(), it should remove the ip and allow the player to vote again. What I want it to do is keep the timer running for that player even when he logs out.