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

Fix unregistered players teleport to spawn with unforced registration #1913

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kongolan
Copy link

Considering that I posted the same bug 4 years back (which was fixed on an old version), you should really consider that there are some servers, which do not force registration for players... since the whole test class is written only with forced registration in mind.

If you set teleportUnAuthToSpawn to true and also forceRegistration to false, unregistered players always end up at spawn, while they should not be altered by AuthMe and login like vanilla. Once you register that player it works perfectly fine.

@sgdc3 sgdc3 requested review from sgdc3, hex3l and ljacqu September 18, 2019 20:47
@ljacqu
Copy link
Member

ljacqu commented Sep 21, 2019

Looks fine to me.
@sgdc3 – I remember in the past you were worried about checking if an auth is available too frequently. Maybe we should think about issuing a warning if registration is optional but the data source is not cached?
@Kongolan – thanks for the contribution. You mention that there are no tests that test for optional registration. Feel free to add some if you like.

@Kongolan
Copy link
Author

So far I only added the tests for optional registration to make it compile. So I did not actually write a solid test code. But it's really something which is missed out all the time.

@Kongolan
Copy link
Author

Kongolan commented Dec 15, 2019

Looking into this again since i was going to check for the 1.15 update... What is the codeclimate issue which needs to be fixed? Is that the reason why the pull request was not applied yet?

@sgdc3
Copy link
Member

sgdc3 commented Dec 16, 2019

Hmm dataSource.isAuthAvailable is a blocking call, are we shure that the teleport method is never called from the main thread?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants