Originally Posted by
minimike150
Forgetting server-side for a minute; You can make the client not change the running boolean on login/logout, so the value will only be changed by the player in-game.
This means if they are running and log out, logging back in again they will still be running.
However, if the client is closed and opened again, this value is lost.
You say you've added it to the character file, does that also include the loading of the character files?
Not sure, I've added this:
Code:
} else if (token.equals("character-running")) {
c.running = Boolean.parseBoolean(token2);
And also this:
Code:
characterfile.write("character-running = ", 0, 20);
characterfile.write(Boolean.toString(c.running), 0, Boolean.toString(c.running).length());
characterfile.newLine();
Do I need to do something else to properly load it?