Running CnUsername Plugin in standard plugin mode gets Chinese and non-standard usernames onto your server quickly, but plugin mode comes with specific command limits that can surprise admins. Understanding how to quote names, when to use the JavaAgent launch option, and how to set UTF-8 encoding in containers prevents most day-to-day server headaches.
Using Commands in Plugin Mode vs JavaAgent Mode
In normal plugin mode, vanilla entity selectors do not work with special usernames. Whenever you target a player with Chinese or non-standard characters in commands such as /tp, wrap the player's exact username in quotation marks so Minecraft parses the name properly. If your hosting environment lets you edit startup flags and you want full support, use the JavaAgent launch option offered by CnUsername where possible. Launching in JavaAgent mode lifts the plugin-mode limits and allows vanilla entity selectors to work normally with special names, though usernames remain capped at 16 characters due to packet decoder limits.
Fixing Unmappable Character Errors in Containers
When hosting inside containerized servers, non-standard filenames or Chinese player data can trigger an InvalidPathException mentioning unmappable characters. To fix this error cleanly, set your server startup file encoding options to UTF-8 and restart the container so the server handles Unicode paths properly. Always check both your Paper perform-validate-username setting (false) and your UTF-8 startup encoding whenever migrating a server with Chinese usernames onto a new host.
