games647 / FastLogin

Checks if a minecraft player has a valid paid account. If so, they can skip offline authentication automatically. (premium auto login)
https://www.spigotmc.org/resources/fastlogin.14153
MIT License
493 stars 121 forks source link

Disconnect player first time join #788

Closed SkyDude0 closed 2 years ago

SkyDude0 commented 2 years ago

What happened?

Every proxy restart, every players join first time got disconnected with message ''disconnect'' and after that they can reconnect normally. I try without fastlogin on proxy and it work normally.

I use lastest velocity version on proxy, the #1069

For spigot i use the last modified version for TCPshield problem with ip (127.168.0.1)

What did you expect?

Join without disconnect

Steps to reproduce

No response

Plugin list

No response

Configuration file

No response

Server log

No response

Plugin version

v1.11-SNAPSHOT-4f3c8ad

Platform

Velocity

Relevance

games647 commented 2 years ago

Please add the missing server log.

SkyDude0 commented 2 years ago

yep, sorry. https://pastebin.com/07ci9Cmm

EDIT: it happend only on registered premium user.

I also see that on velocity the TCPshield bug remain, ''no on-going session..... with ID 127.0.0.1''

games647 commented 2 years ago

Please post the Spigot log. That's more relevant in this case.

SkyDude0 commented 2 years ago

sure, but remember that work on waterfall. https://pastebin.com/uSHD6CVA

games647 commented 2 years ago

According to that log, it's normal. Paper delays the processing of the communication message from a proxy, regardless of Velocity and Waterfall. Therefore, you see the no on-goging message, but still logs you in after that.

In this log, everything seems to be working fine. Can you confirm? I'll need the part where it doesn't work.

SkyDude0 commented 2 years ago

the part where it dosent work just say ''no on-goging message'' , nothing else

This: [FastLogin] No on-going login session for player: CraftPlayer{name=Exenk} with ID 127.0.0.1:40280

EDIT: I fix the autologin in lobby with change the driver on the config of the lobby for now.

SkyDude0 commented 2 years ago

solved for now

SkyDude0 commented 2 years ago

Ok, i can confirm at 100% that only player with premium active , the first time join got a disconnection like ''connection lost'' and after that all fine

CormacZ commented 2 years ago

wait, how you fix the "CraftPlayer" thing. i cant relog in my server each time I tried to

games647 commented 2 years ago

@kedavlar Please post the server log at the time. We need to know the state of the plugin at that time.

SkyDude0 commented 2 years ago

there nothing on the log, just normal thing. It happend only at premium player (like me) and only first time. But really.. theres nothing different from the second time i join

games647 commented 2 years ago

That's exactly what I need to know. What kind of messages does it print? Then I can analyze the steps it took. As well as which plugin version you now use and the Spigot (or which fork) server version.

SkyDude0 commented 2 years ago

The message is like ''disconnected'' with the first login and i think is related to the TCPshiled version of spigot. I use paper 1.8.9

Edit: i can do more test when i can, trying with normal and TCPshield version.

Another thing.. first time when i get the message ''disconnected'' i have no log about that, only on the second time

SkyDude0 commented 2 years ago

Nvm.. its just a coincidence... with a LOT of test i detect the problem. Ty for the help.

CormacZ commented 2 years ago

Nvm.. its just a coincidence... with a LOT of test i detect the problem. Ty for the help.

tell mee