diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index aa1791d5..0d19a6fb 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -689,6 +689,16 @@ namespace TShockAPI } }) + .AddFlag("-worldselectpath", pathChecker) + .After(() => + { + if (path != null) + { + Main.WorldPath = path; + ServerApi.LogWriter.PluginWriteLine(this, "World path has been set to " + path, TraceLevel.Info); + } + }) + .AddFlag("-logpath", pathChecker) .After(() => {