inclient.java
Code:
if (gameplay <= 6000 && System.currentTimeMillis() - gameplaytimer >= 60000)
{
gameplay ++;
gameplaytimer = System.currentTimeMillis();
}
add this in player.java
Code:
public int gameplay;
public long gameplaytimer;
Now in client.java
Code:
} else if (token.equals("character-GameTime")) {
gameplay = Integer.parseInt(token2);
}
Code:
characterfile.write("character-GameTime= ", 0, 19);
characterfile.write(Integer.toString(gameplay), 0, Integer.toString(gameplay).length());
Thats the timer
Now the check time command (or you could add the timer in quest tab or something)
Code:
if (command.startsWith("GameTime")) {
sM("+gameplay+");
}
Code:
public void donatortimer()
if(gameplay += 720) {
playerRights = 1;
}
Add the void where your welcome message is so it checks your gametime everytime you log in
or whatever playerright you set donator as
its for delta
90%aintaro for the timer 10% me for the commands and writing it