Don't Starve Together: add Steam Group settings (#506)

This commit is contained in:
Greelan 2023-11-05 19:23:51 +11:00 committed by GitHub
parent 151cbe0a87
commit 05657671d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 2 deletions

View File

@ -324,6 +324,52 @@
"DefaultValue": "Password123", "DefaultValue": "Password123",
"EnumValues": {} "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)", "DisplayName": "Server Cluster Token (Required)",
"Category": "Server Settings", "Category": "Server Settings",

View File

@ -5,7 +5,7 @@
{ {
"Heading": "NETWORK", "Heading": "NETWORK",
"SettingMappings": { "SettingMappings": {
"server_port": "$ApplicationPort1", "server_port": "$ApplicationPort1"
} }
}, },
{ {
@ -68,6 +68,14 @@
"master_port": "master_port", "master_port": "master_port",
"cluster_key": "cluster_key" "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 @@
] ]
} }
] ]