RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[2.0 SVN] Server shutdown on logoff

panther

Sorceror
[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 ):
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;
 
Top