-
-
Notifications
You must be signed in to change notification settings - Fork 142
Fix Floodgate player detection (caused by prefixes) #635
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 Floodgate player detection (caused by prefixes) #635
Conversation
|
Correct me if I am wrong. As far as I understand it ProtocolLib sees the original username while other platforms are infected by the prefix change and return the prefixed username on getUsername()? Does this solution support both linked cases? |
94be5d9 to
9978fe6
Compare
It probably won't, because linked players don't have prefixes. |
|
I don't use floodgate and I get the same error. Possible to implement a fix for users using Geyser without floodgate? |
|
I tried this: But unfortunately Geyser is always returning null no matter if i join from java or bedrock. But i guess that's a good start. I then use the boolean on the if(isPremium) condition, so that bedrock players are not being checked. But as i said earlier. For some reason geyser always returns null. |
|
@jondycz Assuming from #616 (comment) (and the comments afterwards) you are using If I assume correctly (#616 (comment)) you are having the issue with players, who have used For a generalized approach, I might create a new config entry called something like |
Yes you assumed correctly. Running server in offline mode and having issues with accounts who used /premium. So that requires some checks to be in place so that users joining from bedrock who used /premium are not being checked for Mojang authentication. I'm not really a java developer, but i can try taking a look. Do you think you will be able to implement a configurable option for this in the near future? |
Summary of your change
So after implementing around half of the plans I've outlined in #608 (comment), I've realized that most of them are either false, or unnecessary.
From my test concluded today, I've realized that Floodgate now appends the prefixes to every player by the time they reach JoinManagement. The only exception to this, is when #493 occurs.
This PR makes JoinManagement use
FloodgateApi.getCorrectUsername()instead ofFloodgateApi.getUsername().Related issue
Fixes #603
Fixes #616
Fixes #630
Fixes #632