server languages

This commit is contained in:
coolbot100s
2026-03-09 22:42:02 -07:00
parent b54f60d904
commit 386dfcdb8d
3 changed files with 24 additions and 0 deletions
@@ -0,0 +1,5 @@
## Supported Languages
Currently, you've selected %PROJECT_LANGUAGE_COUNT% [Languages](%PROJECT_LANGUAGE_SETTINGS%), per section 5.1 of %RULES% we ask that you confirm all selected languages are accurate.
Selected languages should represent what players can expect to see on your server, and all players should be able to get the full experience out of your server even if they only understand one of the selected languages.
@@ -35,8 +35,23 @@ const ruleFollowing: Stage = {
weight: 0,
suggestedStatus: 'rejected',
severity: 'critical',
shouldShow(project, projectV3) {
return !!projectV3?.minecraft_server
},
message: async () => (await import('../messages/paid-access-server.md?raw')).default,
},
{
id: 'excessive_languages',
type: 'button',
label: 'Excessive languages',
weight: 0,
suggestedStatus: 'flagged',
severity: 'low',
shouldShow(project, projectV3) {
return !!projectV3?.minecraft_server && !!projectV3?.minecraft_server?.languages?.length && projectV3?.minecraft_server?.languages?.length > 4
},
message: async () => (await import('../messages/misc-metadata/excessive_languages-server.md?raw')).default,
},
],
}
+4
View File
@@ -412,5 +412,9 @@ export function flattenProjectV3Variables(
vars['PROJECT_SITE_URL'] = projectV3.link_urls?.site?.url || 'None'
vars['PROJECT_STORE_URL'] = projectV3.link_urls?.store?.url || 'None'
vars['PROJECT_LANGUAGES'] = projectV3.minecraft_server?.languages?.toString() || 'None'
vars['PROJECT_LANGUAGE_COUNT'] = (projectV3.minecraft_server?.languages?.length || 0).toString()
return vars
}