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:
parent
bc18550a3f
commit
07d607a9b6
3 changed files with 5 additions and 9 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue