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:
parent
f6f2ebdd96
commit
7717f6d9d5
1 changed files with 0 additions and 8 deletions
|
|
@ -602,14 +602,6 @@ namespace TShockAPI
|
||||||
throw new InvalidOperationException("Invalid value given for command line argument \"-ip\".");
|
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;
|
break;
|
||||||
}
|
}
|
||||||
case "-worldname":
|
case "-worldname":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue