From 827dee2570a68f4510af14bb582db18b391c60c2 Mon Sep 17 00:00:00 2001 From: clay Date: Sat, 25 Mar 2023 11:42:19 -0400 Subject: [PATCH] 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> --- sven-co-op.kvp | 2 +- sven-co-opconfig.json | 18 +++++++++++++++++- sven-co-opmetaconfig.json | 1 + 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/sven-co-op.kvp b/sven-co-op.kvp index 1db93bf..6b4d77c 100644 --- a/sven-co-op.kvp +++ b/sven-co-op.kvp @@ -24,7 +24,7 @@ Console.ThrowawayMessageRegex= Console.UserChatRegex=^"(?.+?)<.*" say "(?.+)"$ Console.UserJoinRegex=^"(?.+?)<.*(entered|connected)$ Console.UserLeaveRegex=^"(?.+?)<.*disconnected$ -Meta.Author=IceOfWraith +Meta.Author=IceOfWraith, UVClay Meta.ConfigManifest=sven-co-opconfig.json Meta.MetaConfigManifest=sven-co-opmetaconfig.json Meta.ConfigRoot=sven-co-op.kvp diff --git a/sven-co-opconfig.json b/sven-co-opconfig.json index 84e1b85..c88f438 100644 --- a/sven-co-opconfig.json +++ b/sven-co-opconfig.json @@ -12,6 +12,22 @@ "DefaultValue": "AMP Powered Sven Server", "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", "Category": "Server Settings", @@ -1882,4 +1898,4 @@ "DefaultValue": "20", "EnumValues": {} } -] \ No newline at end of file +] diff --git a/sven-co-opmetaconfig.json b/sven-co-opmetaconfig.json index 97d1458..47f6c62 100644 --- a/sven-co-opmetaconfig.json +++ b/sven-co-opmetaconfig.json @@ -10,6 +10,7 @@ "hostname": "hostname", "log": "log", "rcon_password": "$RemoteAdminPassword", + "maxplayers": "$MaxUsers", "servercfgfile": "servercfgfile", "lservercfgfile": "lservercfgfile", "mapvotecfgfile": "mapvotecfgfile",