dont fucking blindy try-catch everywhere
This commit is contained in:
parent
24f7756370
commit
43f173f7d7
2 changed files with 217 additions and 264 deletions
|
|
@ -89,6 +89,8 @@ namespace TShockAPI
|
|||
if (!System.IO.File.Exists(SaveDir + "admins.txt")) { FileTools.CreateFile(SaveDir + "admins.txt"); }
|
||||
if (!System.IO.File.Exists(SaveDir + "grief.txt")) { FileTools.CreateFile(SaveDir + "grief.txt"); }
|
||||
if (!System.IO.File.Exists(SaveDir + "whitelist.txt")) { FileTools.CreateFile(SaveDir + "whitelist.txt"); }
|
||||
if (!System.IO.File.Exists(SaveDir + "groups.txt")) { FileTools.CreateFile(SaveDir + "groups.txt"); }
|
||||
if (!System.IO.File.Exists(SaveDir + "users.txt")) { FileTools.CreateFile(SaveDir + "users.txt"); }
|
||||
ConfigurationManager.WriteJsonConfiguration();
|
||||
ConfigurationManager.ReadJsonConfiguration();
|
||||
Netplay.serverPort = ConfigurationManager.serverPort;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue