HomeJavaModsUsernameRegex
UsernameRegex
ModsJava

UsernameRegex

by PuddingKC · on Modrinth

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

⬇ Download on Modrinth

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

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more