Kr1S-D / UltimateAntibotRecoded

Just another antibot plugin =)
34 stars 6 forks source link

[Feature Request] Regex in invalidname #44

Closed RapidGravy closed 3 months ago

RapidGravy commented 5 months ago

Suggestion to add the ability to use regular expressions in the invalidname section of the config.

Example:

invalidname:
    invalid:
      - "\b(f+(\W|\d|_)*u*(\W|\d|_)*c+(\W|\d|_)*k+(\W|\d|_)*)"
      - "\b(f+(\W|\d|_)*a+(\W|\d|_)*g+(\W|\d|_)*)"
      - "REGEX3"
      - "REGEX4"

This would allow the ability to prevent players who have profanities or racial slurs in their name from joining.