From 7717f6d9d5d7887aa928cfb4a1e868f8899ce13f Mon Sep 17 00:00:00 2001 From: Tyler Watson Date: Thu, 23 Jul 2015 18:41:18 +1000 Subject: [PATCH] Removed -world handling from inside TShock Seriously, when has it ever been a good idea to handle TSAPI commandline mechanisms from a plugin? TSAPI related command line parameters need to be handled from inside TSAPI. --- TShockAPI/TShock.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 5247b0da..c0a8fbe2 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -602,14 +602,6 @@ namespace TShockAPI throw new InvalidOperationException("Invalid value given for command line argument \"-ip\"."); } - break; - } - case "-world": - { - string worldPath = parms[++i]; - Main.instance.SetWorld(worldPath);; - ServerApi.LogWriter.PluginWriteLine(this, string.Format("World set for auto loading: {0}", worldPath), TraceLevel.Verbose); - break; } case "-worldname":