From 8cd6bf7d7b46e7502bff778ec778e26dbd8741f9 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 12 Jun 2021 23:54:38 -0700 Subject: [PATCH] Fix failure to apply default config changes TShock.ConfigFile was deprecated and therefore changes applied in previous commits were not applied until now. See: * f567486c47365aa953b74db3b576917456c09ed9 * 39147355c1aaf93e22eafc1af834257bf04666d0 * 597e403d5022f55949411ad589e74f41e978db33 --- TShockAPI/Configuration/TShockConfig.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TShockAPI/Configuration/TShockConfig.cs b/TShockAPI/Configuration/TShockConfig.cs index 77f092de..801a4c5f 100644 --- a/TShockAPI/Configuration/TShockConfig.cs +++ b/TShockAPI/Configuration/TShockConfig.cs @@ -45,7 +45,7 @@ namespace TShockAPI.Configuration /// Whether or not the server should output debug level messages related to system operation. [Description("Whether or not the server should output debug level messages related to system operation.")] - public bool DebugLogs = true; + public bool DebugLogs = false; /// Prevents users from being able to login before they finish connecting. [Description("Prevents users from being able to login before they finish connecting.")] @@ -74,11 +74,11 @@ namespace TShockAPI.Configuration /// The interval between backups, in minutes. Backups are stored in the tshock/backups folder. [Description("The interval between backups, in minutes. Backups are stored in the tshock/backups folder.")] - public int BackupInterval; + public int BackupInterval = 10; /// For how long backups are kept in minutes. [Description("For how long backups are kept in minutes.\neg. 2880 = 2 days.")] - public int BackupKeepFor = 60; + public int BackupKeepFor = 240; /// Whether or not to save the world if the server crashes from an unhandled exception. [Description("Whether or not to save the world if the server crashes from an unhandled exception.")] @@ -243,7 +243,7 @@ namespace TShockAPI.Configuration /// The number of seconds a player must wait before being respawned. Cannot be longer than normal value now. Use at your own risk. [Description("The number of seconds a player must wait before being respawned. Cannot be longer than normal value now. Use at your own risk.")] - public int RespawnSeconds = 5; + public int RespawnSeconds = 10; /// The number of seconds a player must wait before being respawned if there is a boss nearby. Cannot be longer than normal value now. Use at your own risk. [Description("The number of seconds a player must wait before being respawned if there is a boss nearby. Cannot be longer than normal value now. Use at your own risk.")]