UsernameRegex
PluginMIT

UsernameRegex

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

68
Downloads
0
Followers
1 years ago
Updated
📦
1
Versions

📖About UsernameRegex

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."