diff --git a/TShockAPI/Configuration/ServerSideConfig.cs b/TShockAPI/Configuration/ServerSideConfig.cs index 8e777303..10cdd21e 100644 --- a/TShockAPI/Configuration/ServerSideConfig.cs +++ b/TShockAPI/Configuration/ServerSideConfig.cs @@ -83,6 +83,22 @@ namespace TShockAPI.Configuration /// public class ServerSideConfig : ConfigFile { + /// + /// Upgrades the configuration file from the old format if required, then reads and returns the currently configured + /// + /// + /// + /// + public override SscSettings ConvertJson(string json, out bool incompleteSettings) + { + var settings = FileTools.LoadConfigAndCheckForChanges(json, out incompleteSettings); + + Settings = settings; + OnConfigRead?.Invoke(this); + + return settings; + } + /// /// Dumps all configuration options to a text file in Markdown format ///