Sueta

UsernameRegex

1.0.1

Uses regular expressions to determine if a player's username meets the requirements when they log into the server.

·Plugin

Plugin Description

Uses custom regular expressions to determine if a player's username meets the requirements when they log into the server.

Configuration File

# Presets
# Only allow English letters (uppercase and lowercase), numbers, and underscores: ^[a-zA-Z0-9_]+$
# Only allow Chinese characters: ^[\u4e00-\u9fa5]+$
# Allow Chinese characters, English letters (uppercase and lowercase), numbers, and underscores: ^[\u4e00-\u9fa5a-zA-Z0-9_]+$
# Only allow numbers: ^\d+$
# No restrictions: .*

usernameRegex: "^[a-zA-Z0-9_]+$"
kickMessage: "&cYour username contains disallowed characters. Please change it and try again."

Similar projects

Plugin →