-
-
Notifications
You must be signed in to change notification settings - Fork 149
Description
What happened?
The Bukkit part of the server is irrelevant, because the Player gets kicked before reaching it.
This happens randomly (around 50% of the time), if the player is not yet in the Floodgate.getPlayers() list when doing the name conflict checking:
https://github.com/games647/FastLogin/blob/01c9b55d80c93e0df4ad9050519995f4d56db759/core/src/main/java/com/github/games647/fastlogin/core/shared/JoinManagement.java#L61
If this line returns null, it means that he/she is a Java Player, and they'll be treated as one. Because my Bedrock username is the same as my Java username, I'm treated as a Premium player. Because of that, FastLogin will try to log in the Floodgate players as if they were a Premium Java players, which causes the errors that I've attached in the logs below.
I have experimented quite a bit with the code, and found out the following:
-
The
usernamevariable in...
https://github.com/games647/FastLogin/blob/01c9b55d80c93e0df4ad9050519995f4d56db759/core/src/main/java/com/github/games647/fastlogin/core/shared/JoinManagement.java#L53
...sometimes contains the Floodgate prefix, sometimes it doesn't. -
connection.getUniqueId()isnullat the PreLogin event, although it should have been initialized by Floodgate.- Why should it have a value?
- Floodgate's PreLogin event priority is
LOWESTwhile FastLogin's is unset (=NORMAL). - This was in the docs of the Floodgate 1.0 implementation of FastLogin
https://github.com/games647/FastLogin/blob/d6a02aa5385ef7eb6c8b2f2169dfae1a351ef5b8/bungee/src/main/java/com/github/games647/fastlogin/bungee/listener/ConnectListener.java#L211-L213 - And it is in fact, still true for Floodgate 2.0 (UUID setting code)
- Floodgate's PreLogin event priority is
- Why doesn't it have a value?
- I don't know. Please help me out. Am I the one who doesn't see something, or did Bungee forget how EventPriority works?
- Why should it have a value?
What did you expect?
No response
Steps to reproduce
No response
Plugin list
Geyser, Floodgate, SQLite-for-BungeeCord
Configuration file
not loaded by the plugin at this point of the code
Server log
https://pastebin.com/FjNK7Wd7Plugin version
Platform
BungeeCord
Relevance
- I tried the latest build
- I checked for existing tickets -
If there are, please vote them with a thumps reaction and not create new ones