POT: add server rules setting (#403)

This commit is contained in:
Greelan 2023-06-23 07:13:33 +10:00 committed by GitHub
parent 39fd5fdc9c
commit 0927ca1df3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 1 deletions

View File

@ -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":"<title>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",

View File

@ -23,5 +23,18 @@
}
}
]
}
},
{
"ConfigFile":"PathOfTitans/Saved/Rules.txt",
"ConfigType":"kvp",
"ConfigFormat":"{0}{1}",
"Subsections":[
{
"Heading":"$root",
"SettingMappings":{
"":"Rules"
}
}
]
}
]