-maxplayers or -players cl argument should override config
additions to /removespecial
This commit is contained in:
parent
3bbfa1b434
commit
d478810336
2 changed files with 38 additions and 28 deletions
7
TShockAPI/TShock.cs
Normal file → Executable file
7
TShockAPI/TShock.cs
Normal file → Executable 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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue