27.04.2012, 18:18
Like I posted above, the "OnPlayerDisconnect" callback is not called when you restart your server. For example, if you click "X" button at the server command prompter (or what ever is the black screen), it just shuts the gamemode down, without calling 'any' callback ? Like you said, it saves when you do /q but when you close the server, no. So, what you can do, is either make a command to restart the server, which loops through all online players and will save all their stats and after that restart the server or just kick all players, forcing them to save their stats.