diff --git a/Scripts/Misc/CrashGuard.cs b/Scripts/Misc/CrashGuard.cs index 504758d..f1cb7fd 100644 --- a/Scripts/Misc/CrashGuard.cs +++ b/Scripts/Misc/CrashGuard.cs @@ -14,7 +14,7 @@ namespace Server.Misc { private static bool Enabled = true; private static bool SaveBackup = true; - private static bool RestartServer = true; + private static bool RestartServer = Settings.S_RestartOnCrash; private static bool GenerateReport = true; public static void Initialize() diff --git a/Scripts/Settings.cs b/Scripts/Settings.cs index a0cbb0b..7f23a20 100644 --- a/Scripts/Settings.cs +++ b/Scripts/Settings.cs @@ -4,6 +4,7 @@ namespace Server { public static string S_ServerName = "Avatars Conquest"; public static int S_Port = 8008; + public static bool S_RestartOnCrash = false; public static double S_ServerSaveMinutes = 5.0; // 5-240 minutes range public static double S_ServerSaveWarningSeconds = 15; public static bool S_SaveOnCharacterLogout = true;