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.
This commit is contained in:
Tyler Watson 2015-07-23 18:41:18 +10:00
parent f6f2ebdd96
commit 7717f6d9d5

View file

@ -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":