Remove redundunt -ip handling in TShock.

TAPI already handles -ip
This commit is contained in:
Deathmax 2012-01-13 16:23:03 +08:00
parent 4c4cd4027d
commit 4473632691

View file

@ -320,19 +320,6 @@ namespace TShockAPI
{
for (int i = 0; i < parms.Length; i++)
{
if (parms[i].ToLower() == "-ip")
{
IPAddress ip;
if (IPAddress.TryParse(parms[++i], out ip))
{
Netplay.serverListenIP = ip;
Console.Write("Using IP: {0}", ip);
}
else
{
Console.WriteLine("Bad IP: {0}", parms[i]);
}
}
if (parms[i].ToLower() == "-configpath")
{
var path = parms[++i];