Hi
I have a question, i searched but didn't fount anything in forums.
If we restart server in panel or in hard way, does USER_DISCONNECT event for players will call or not ?
I mean , we have some data for players and we want to save them before server restarts , how can i do that ?
thanks in advance.
USER_DISCONNECT before Server restart
Re: USER_DISCONNECT before Server restart
Hello,
USER_DISCONNECT is the name of the server side event. If you're restarting the server your Extension will not be able to react to the event as the current instance is being stopped.
You can add a "shutdown hook" in your code to catch the JVM restart and execute your code.
See this discussion:
viewtopic.php?p=79546#p79546
Hope it helps
Pirisok wrote:Hi
If we restart server in panel or in hard way, does USER_DISCONNECT event for players will call or not ?
USER_DISCONNECT is the name of the server side event. If you're restarting the server your Extension will not be able to react to the event as the current instance is being stopped.
I mean , we have some data for players and we want to save them before server restarts , how can i do that ?
You can add a "shutdown hook" in your code to catch the JVM restart and execute your code.
See this discussion:
viewtopic.php?p=79546#p79546
Hope it helps
Who is online
Users browsing this forum: No registered users and 85 guests