Well, this is okay for a delta based server.
I would recommend looking into Tickables or Events.
|
|
recently i added this in process:
if(System.currentTimeMillis() - lastAction >= 30000){
lastAction = System.currentTimeMillis();
System.out.println("[AUTO-SAVE] - "+playerName+" Autosaved.");
savegame(false);
return true;
}
and it works perfectly fine, it auto saves everything, but what negatives can this have?
will it lagg my server?
| « clipping help | T2 Error Help! » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |