From 05657671d4ddb84b7a4b946a2bcdabeae866fa18 Mon Sep 17 00:00:00 2001 From: Greelan <53196309+Greelan@users.noreply.github.com> Date: Sun, 5 Nov 2023 19:23:51 +1100 Subject: [PATCH] Don't Starve Together: add Steam Group settings (#506) --- dont-starve-togetherconfig.json | 46 +++++++++++++++++++++++++++++ dont-starve-togethermetaconfig.json | 12 ++++++-- 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/dont-starve-togetherconfig.json b/dont-starve-togetherconfig.json index e7a23e1..f1817b2 100644 --- a/dont-starve-togetherconfig.json +++ b/dont-starve-togetherconfig.json @@ -324,6 +324,52 @@ "DefaultValue": "Password123", "EnumValues": {} }, + { + "DisplayName": "Enable Steam Group Only", + "Category": "Cluster Settings", + "Description": "If enabled, the server will only allow connections from players belonging to the Steam group listed in Steam Group ID", + "Keywords": "steam,group,only,steam_group_only", + "FieldName": "steam_group_only", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "steam_group_only", + "IncludeInCommandLine": false, + "DefaultValue": "false", + "EnumValues": { + "True": "true", + "False": "false" + } + }, + { + "DisplayName": "Steam Group ID", + "Category": "Cluster Settings", + "Description": "Sets a [Steam group ID](https://forums.kleientertainment.com/topic/55994-server-admin-associate-your-server-with-a-steam-group/) for the Enable Steam Group Only and Steam Group Admins settings", + "Keywords": "steam,group,id,steam_group_id", + "FieldName": "steam_group_id", + "InputType": "number", + "IsFlagArgument": false, + "ParamFieldName": "steam_group_id", + "IncludeInCommandLine": false, + "DefaultValue": "0", + "Placeholder": "0", + "EnumValues": {} + }, + { + "DisplayName": "Steam Group Admins", + "Category": "Cluster Settings", + "Description": "If enabled, admins of the steam group specified in Steam Group ID will also have admin status on the server", + "Keywords": "steam,group,admins,steam_group_admins", + "FieldName": "steam_group_admins", + "InputType": "checkbox", + "IsFlagArgument": false, + "ParamFieldName": "steam_group_admins", + "IncludeInCommandLine": false, + "DefaultValue": "false", + "EnumValues": { + "True": "true", + "False": "false" + } + }, { "DisplayName": "Server Cluster Token (Required)", "Category": "Server Settings", diff --git a/dont-starve-togethermetaconfig.json b/dont-starve-togethermetaconfig.json index 84e6cee..a8ca3c5 100644 --- a/dont-starve-togethermetaconfig.json +++ b/dont-starve-togethermetaconfig.json @@ -5,7 +5,7 @@ { "Heading": "NETWORK", "SettingMappings": { - "server_port": "$ApplicationPort1", + "server_port": "$ApplicationPort1" } }, { @@ -68,6 +68,14 @@ "master_port": "master_port", "cluster_key": "cluster_key" } + }, + { + "Heading": "STEAM", + "SettingMappings": { + "steam_group_only": "steam_group_only", + "steam_group_id": "steam_group_id", + "steam_group_admins": "steam_group_admins" + } } ] }, @@ -85,4 +93,4 @@ ] } -] \ No newline at end of file +]