mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 12:46:05 +01:00
#3256: Allow - and . in online mode as some accounts still have these usernames
This commit is contained in:
parent
eae9d45c8a
commit
f4f94d3b56
@ -17,7 +17,7 @@ public final class AllowedCharacters
|
||||
{
|
||||
if ( onlineMode )
|
||||
{
|
||||
return ( c >= 'a' && c <= 'z' ) || ( c >= '0' && c <= '9' ) || ( c >= 'A' && c <= 'Z' ) || c == '_';
|
||||
return ( c >= 'a' && c <= 'z' ) || ( c >= '0' && c <= '9' ) || ( c >= 'A' && c <= 'Z' ) || c == '_' || c == '.' || c == '-';
|
||||
} else
|
||||
{
|
||||
// Don't allow spaces, Yaml config doesn't support them
|
||||
|
Loading…
Reference in New Issue
Block a user