Code:public void save() { EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { PlayerSaving.saveAllPlayers(); } }, 500000); //Time in hours };
|
Can someone direct me to an account autosaver or post one here for me. Maybe one that saves every X amount of minutes ..?
Code:public void save() { EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer c) { PlayerSaving.saveAllPlayers(); } }, 500000); //Time in hours };
Hours. Its 500000 hours.
Just change it to 1 for 1 hour and you shouldn't experience rollbacks.
Place it in the client.java then initialize it by doing save();
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |