Fixed json config file changes made while server is running lost if reload is not performed before restart

Fixed unban not saving to file until server shutdown
This commit is contained in:
ricky 2011-06-16 10:18:22 +10:00
parent bc18550a3f
commit 07d607a9b6
3 changed files with 5 additions and 9 deletions

View file

@ -66,6 +66,8 @@ namespace TShockAPI
if (File.Exists(ConfigPath))
{
ConfigurationManager.ReadJsonConfiguration();
// Add all the missing config properties in the json file
ConfigurationManager.WriteJsonConfiguration();
}
else
{