Sven Co-Op: Add maxplayers (#293)

* Sven Co-Op: Add maxplayers, borrow credit

* Update sven-co-opconfig.json

* Update sven-co-opmetaconfig.json

* Update sven-co-opconfig.json

---------

Co-authored-by: Greelan <53196309+Greelan@users.noreply.github.com>
This commit is contained in:
clay 2023-03-25 11:42:19 -04:00 committed by GitHub
parent b8497bfb9b
commit 827dee2570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 2 deletions

View File

@ -24,7 +24,7 @@ Console.ThrowawayMessageRegex=
Console.UserChatRegex=^"(?<username>.+?)<.*" say "(?<message>.+)"$ Console.UserChatRegex=^"(?<username>.+?)<.*" say "(?<message>.+)"$
Console.UserJoinRegex=^"(?<username>.+?)<.*(entered|connected)$ Console.UserJoinRegex=^"(?<username>.+?)<.*(entered|connected)$
Console.UserLeaveRegex=^"(?<username>.+?)<.*disconnected$ Console.UserLeaveRegex=^"(?<username>.+?)<.*disconnected$
Meta.Author=IceOfWraith Meta.Author=IceOfWraith, UVClay
Meta.ConfigManifest=sven-co-opconfig.json Meta.ConfigManifest=sven-co-opconfig.json
Meta.MetaConfigManifest=sven-co-opmetaconfig.json Meta.MetaConfigManifest=sven-co-opmetaconfig.json
Meta.ConfigRoot=sven-co-op.kvp Meta.ConfigRoot=sven-co-op.kvp

View File

@ -12,6 +12,22 @@
"DefaultValue": "AMP Powered Sven Server", "DefaultValue": "AMP Powered Sven Server",
"EnumValues": {} "EnumValues": {}
}, },
{
"DisplayName": "Max Players",
"Category": "Server Settings",
"Description": "maxplayers",
"Keywords": "maxplayers,limit",
"FieldName": "$MaxUsers",
"InputType": "number",
"MinValue": "2",
"MaxValue": "32",
"IsFlagArgument": false,
"ParamFieldName": "maxplayers",
"IncludeInCommandLine": true,
"DefaultValue": "12",
"Suffix": "players",
"EnumValues": {}
},
{ {
"DisplayName": "Map", "DisplayName": "Map",
"Category": "Server Settings", "Category": "Server Settings",

View File

@ -10,6 +10,7 @@
"hostname": "hostname", "hostname": "hostname",
"log": "log", "log": "log",
"rcon_password": "$RemoteAdminPassword", "rcon_password": "$RemoteAdminPassword",
"maxplayers": "$MaxUsers",
"servercfgfile": "servercfgfile", "servercfgfile": "servercfgfile",
"lservercfgfile": "lservercfgfile", "lservercfgfile": "lservercfgfile",
"mapvotecfgfile": "mapvotecfgfile", "mapvotecfgfile": "mapvotecfgfile",