Some improvements ..

This commit is contained in:
Li 2022-11-20 15:33:36 +13:00
parent 1909950409
commit d630abb66a
11 changed files with 51 additions and 39 deletions

View file

@ -8240,12 +8240,12 @@ namespace HISP.Server
if (minuteTimer != null)
minuteTimer.Dispose();
}
public static void ShutdownServer()
public static void ShutdownServer(string shutdownReason = "No reason provided.")
{
Logger.InfoPrint("Server shutting down.");
Logger.InfoPrint("Server shutting down; " + shutdownReason);
try
{
GameClient.OnShutdown();
GameClient.OnShutdown(shutdownReason);
GameServer.OnShutdown();
Database.OnShutdown();
}