Illegal characters in nickname
A nickname with invalid characters: where it comes from, why it is dangerous on a server with nickname login, and how to set up validation.
Updated August 13, 2026
[INFO]: Disconnecting Nick: Illegal characters in login
A client sent a nickname containing characters that nicknames shouldn't have.
Where this happens
- On offline servers: the client sends an arbitrary string, including Unicode, spaces and control characters.
- During attacks: the nickname is one of the vectors used to try to break plugins and the database.
Why it's dangerous
The nickname ends up in files, the database, chat and plugins. Formatting characters (§), quotes and very long strings break configs, interfaces and queries.
Configuration
In spigot.yml:
settings:
restrict-nicknames: true
Auth plugins can be stricter: allow only a-zA-Z0-9_ with a length of 3–16 — AuthMe.
You shouldn't allow Cyrillic in nicknames: some plugins and monitoring services don't work with it, and players won't be able to send each other private messages.
On an online-mode server
Mojang validates nicknames, so this error means either a connection attempt from something other than a Minecraft client, or a misconfigured proxy — IP-forwarding.
