AuthMe Reloaded

AuthMe Reloaded

3M Downloads

Your username contains illegal characters.

WolfyRed opened this issue · 1 comments

commented

What behaviour is observed?

Whenever I join with a - or some other character in my name, it kicks me out of the game!
How do I allow all characters? Or all characters EXCEPT a couple? There's no documentation anywhere... :/

Expected behaviour

Join with any character in your username as you please.

To Reproduce

  1. Add this plugin to your server
  2. Change your offline name to one with a '-'
  3. Join the server
  4. Get kicked out :'(

Plugin list

AuthMe, Essentials, GMC, LuckPerms, Multiverse-Core, OldCombatMechanics, StayPut, Vault, ViaBackwards, ViaRewind, ViaRewind-Legacy-Support, ViaVersion, ViaVersionStatus, Wild

Server Implementation

Standalone server (no proxy)

Database Implementation

SQLite

AuthMe Version

AuthMeReloaded v5.6.0-beta2 (build: 2453)

Error log (if applicable)

No response

Configuration

https://gist.github.com/WolfyRed/1aa9919777f99cc42e70e857ed2d4f35

commented

It‘s a regular expression.
Your regex should be .*? to allow any char, to exclude some you could do something like [^*]+ to allow anything but asterisks. I would work with a whitelist approach because there are probably a lot of characters that could cause trouble. Maybe something like [a-zA-Z0-9_-]+ just add anything more you need between _ and -. Best is to check your regex on a site like regex101 or post your exact requirements and we can double-check with you