Skip to content

Friend Code Validator ​

Plugin ID: duck.Empostor.friendcodevalidator (marketplace: duck.hayashiume.friendcodevalidator) Config file: None — rules are compiled in

ReferenceWhere
ConfigurationNone
CommandsNone
Admin PanelInformational tab
HTTP APINone

Rejects connections whose friend code fails validation.

Validation Rules ​

A friend code is accepted only if both conditions hold:

#RuleDetail
1FormatMatches ^([a-zA-Z]+)#(\d{4})$ — letters, then #, then exactly 4 digits.
2DictionaryThe word portion must exist in the built-in English dictionary (5,000+ words).

Failing either check disconnects the client with a localised message.

Dictionary rejects non-English names

Nicknames like xXxSlayer are not dictionary words and will be rejected. There is no allowlist — only these two rules apply.

Admin Panel ​

Friend Code Validator tab is informational only: it shows the validation pattern and notes that no options are configurable.