[2.0 SVN] Server shutdown on logoff
I noticed that there's now a console control event handler in version 2.0, but the way it is causes the server to shutdown upon logout even if it's running as a service. I simply added the following to OnConsoleEvent above if( World.Saving ):
I suppose this could also be changed to:
I noticed that there's now a console control event handler in version 2.0, but the way it is causes the server to shutdown upon logout even if it's running as a service. I simply added the following to OnConsoleEvent above if( World.Saving ):
Code:
if ( type == ConsoleEventType.CTRL_LOGOFF_EVENT )
return true;
I suppose this could also be changed to:
Code:
if ( type == ConsoleEventType.CTRL_LOGOFF_EVENT && m_Service )
return true;