If you have a shutdown hook, make the server loop through all the players online and save their accounts.
|
|

Well i have a run.sh when you crash it restarts instantly
But is their a way to when it get's crahsed it save's the char files instead of resetting them?
Yes i have shutdown hook
Code
Code:while true do java -cp bin:deps/poi.jar:deps/mysql.jar:deps/mina.jar:deps/slf4j.jar:deps/slf4j-nop.jar:deps/jython.jar:log4j-1.2.15.jar: server.Server done

If you have a shutdown hook, make the server loop through all the players online and save their accounts.

But im using A linux vps, and it's not actually closing the server it's just Saying "Killed" and destryoing the process.


It works if closed manually, but if it's crashed and restarted it doesent work.
| « need a dspk source | [Delta] Pickup not working? [Delta] » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |