-
-
Notifications
You must be signed in to change notification settings - Fork 142
Delay Floodgate name checks on BungeeCord #608
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
Delay Floodgate name checks on BungeeCord #608
Conversation
Hello, I'm experiencing the same issue, in my case a Floodgate player is never auto logged. I tried several times implementing your changes, but is still not working for me. I also tried to git clone your git repository with the fix branch of this but it takes no effect for me ingame. Could you add me to Discord? EnriqueGF#0977 Thank's you for all. |
|
Ok, I've added you. |
|
Ok I talked with @Smart123s about this. I tried the changes but it doesn't work only if name checking is enabled. The console throws something like "User connected through Floodgate, name conflicts will be checked later" but this never happens and the user is not logged in. With name checking disabled, all is fine. |
|
I have come up with some ideas today on how to resolve the unticked points in the original PR message. I'll hove some tests this week, but I'll have free time after them, so I'm planning to get to coding on the weekend, and get something done by at least early next week. The changes / the new stuff
I have decided to re-write this PR, because of
NotesI've just written up my thoughts here as quick as I could, and as a result, I couldn't write any code samples on what I'm talking about. Some of them may not be 100% correct, or might miss out important details that could cause problems. EDIT: If |
Summary of your change
The
FloodgateApireturnsnullatPreLoginEventso all Floodgate related checks have to be done atLoginEvent.Related issue
Fixes #603
Fixes #616
Why Draft?
I especially don't like how I had to create a new class for BungeeFloodgateLoginSource, which is only used by
https://github.com/games647/FastLogin/blob/a46a5fb6116e3798689af53ae2ca75af7b1719ae/bungee/src/main/java/com/github/games647/fastlogin/bungee/listener/ConnectListener.java#L159-L160
https://github.com/games647/FastLogin/blob/a46a5fb6116e3798689af53ae2ca75af7b1719ae/bungee/src/main/java/com/github/games647/fastlogin/bungee/listener/ConnectListener.java#L132
returnstatement.It was easier to make it stay there for now, because on Bukkit, there are two Protocol plugins, and both of them have to run the Floodgate checks.