Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bedrock players can't appeal #1413

Open
bbugsco opened this issue Jan 10, 2024 · 0 comments
Open

Bedrock players can't appeal #1413

bbugsco opened this issue Jan 10, 2024 · 0 comments

Comments

@bbugsco
Copy link

bbugsco commented Jan 10, 2024

When connecting through Geyser/Floodgate as a bedrock player, players have a period '.' before their name ex: '.bbugsco'

Issue is in line 117 server/routes/session.js
if (!/^[a-z0-9_]{2,16}$/i.test(request.body.name)) return throwError(400, 'Invalid name')

to fix, replace with
if (!/^[a-z0-9_.]{2,16}$/i.test(request.body.name)) return throwError(400, 'Invalid name')

Works for me after adding the '.'

@bbugsco bbugsco closed this as completed Jan 10, 2024
@bbugsco bbugsco reopened this Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant