From 0927ca1df352c3cf966247e1d262cbb8b5ab5d3f Mon Sep 17 00:00:00 2001 From: Greelan <53196309+Greelan@users.noreply.github.com> Date: Fri, 23 Jun 2023 07:13:33 +1000 Subject: [PATCH] POT: add server rules setting (#403) --- path-of-titansconfig.json | 13 +++++++++++++ path-of-titansmetaconfig.json | 15 ++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/path-of-titansconfig.json b/path-of-titansconfig.json index 980ac75..a2cf87a 100644 --- a/path-of-titansconfig.json +++ b/path-of-titansconfig.json @@ -78,6 +78,19 @@ "DefaultValue":"AMP_Powered_POT_Server", "EnumValues":{} }, + { + "DisplayName":"Server Rules", + "Category":"POT Server Settings", + "Description":"Sets the server rules displayed and that must be accepted when players first join the server. Refer to these [formatting instructions](https://github.com/Alderon-Games/pot-community-servers/wiki/Setting-up-Rules#formatting)", + "Keywords":"rules", + "FieldName":"Rules", + "InputType":"Textarea", + "IsFlagArgument":false, + "ParamFieldName":"Rules", + "IncludeInCommandLine":false, + "DefaultValue":"Server Rules</>\n<red>1 - Please only attack Camptos.</>\nCamptosauruses are very evil!\n\n<orange>2 - Corpse Cove is closed due to dirty water.</>\n\nThese are the only rules on this server!\n<large>Thanks, and have fun!</>", + "EnumValues":{} + }, { "DisplayName":"Welcome Message", "Category":"POT Server Settings", diff --git a/path-of-titansmetaconfig.json b/path-of-titansmetaconfig.json index c77e967..db9e577 100644 --- a/path-of-titansmetaconfig.json +++ b/path-of-titansmetaconfig.json @@ -23,5 +23,18 @@ } } ] - } + }, + { + "ConfigFile":"PathOfTitans/Saved/Rules.txt", + "ConfigType":"kvp", + "ConfigFormat":"{0}{1}", + "Subsections":[ + { + "Heading":"$root", + "SettingMappings":{ + "":"Rules" + } + } + ] + } ]