Okay so this is the proper way of saving, no rollbacks, and fix alot of dupes in deltascape. Works on all bases though.
Step 1:
First of all remove all savegame(true); or savegame(false); in client class except for the one in the destruct method. Remove it from dieing, dropping, etc. Also remove your gay process saving.
Also if you do not have the savegame method in your destruct method, add it. But it should be there.
Step 2:
Open up Playerhandler class and then go to PlayerHandler() {.
Under it add
Code:
Runtime.getRuntime().addShutdownHook(new Thread()
{
public void run()
{
for (int i = 0; i < maxPlayers; i++)
if(players[i] != null)
((Client)players[i]).savegame(false);
}
});
Now you got fullproof saving.