OnGameModeExit Question
#1

Hello folks. I have a question about ongamemodeexit. Is it called when I stop a server by X button or STOP button in Cpanel in Linux!? If yes, server stops after it (ongamemodeexit) finishes all instructions, even if they will take for instance 5 seconds in a loop for all players to save smth !?Thanks.
Reply
#2

it isn't called when you click x.
Or I don't think it does?

always rcon exit anyway.
Reply
#3

OnGameModeExit isn't called when you close the command console. Using the stop button on cPanel does the same thing, as I assume it just terminates the process.
Reply
#4

I believe a plain Linux kill commands sends a SIGTERM signal for a graceful shutdown. This is usually what a stop button comes down to, but you would need to check because the command can also be fed options to perform a SIGKILL.

After closing the server you should see in the server log that the plugins were unloaded and that something along the lines of "server shutting down" was printed.

On Windows you should probably type exit in the server console for a graceful shutdown.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)