-maxplayers or -players cl argument should override config

additions to /removespecial
This commit is contained in:
k0rd 2012-02-12 15:27:23 -05:00
parent 3bbfa1b434
commit d478810336
2 changed files with 38 additions and 28 deletions

7
TShockAPI/TShock.cs Normal file → Executable file
View file

@ -384,7 +384,12 @@ namespace TShockAPI
Config.RestApiPort = Convert.ToInt32(parms[++i]);
Console.WriteLine("Startup parameter overrode REST port.");
}
}
if ((parms[i].ToLower() == "-maxplayers")||(parms[i].ToLower() == "-players"))
{
Config.MaxSlots = Convert.ToInt32(parms[++i]);
Console.WriteLine("Startup parameter overrode maximum player slot configuration value.");
}
}
}