-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
FastLogin integration plugin didn't report the correct client status in Plan #3485
Comments
Thanks for the insight in how it might need to wait after login, I didn't know that ws the case so it should make it easier to fix it |
It's a simple guess, unsure if that's the cause of the behavior I witness here, but that's the best I came accross :D If any tests needed (testing a new build, or anything to track this bug), feel free to ask me :) |
Please test this build https://github.com/plan-player-analytics/Plan/actions/runs/8213295818 It adds a 1 second wait before asking for the premium status. |
A Future is a concept in Java where another thread than calling thread is performing a task - in this case FastAPI is getting the premium status. If the FastAPI api returned a future I would be able to "wait until this is done" rather than add an arbitrary amount of seconds to wait |
I'll reopen this in case it's FastAPI clearing the premium status on player leave and Plan recording that afterwards |
Thanks for this info, I didn't knew it :) I'll keep an eye here for any needed tests :) |
From the tests I made so far, it might be cleared on reconnection. I think of that because when I join a server where I was previously set as "Premium", I get back to "Unknown" randomly. If more tests needed, feel free to ask :) |
Just a little reply after the latest update : This new change seems to do the trick, I didn't revert, on my short testing, to "Unknown" status. As usual, great job, thanks for that nice plugin ! |
Describe the issue
The FastLogin integration plugin didn't report the correct client status in Plan.
All the clients are reported "Unknown".
Exceptions & Other Logs
Plan output on one of my test servers :
Plugin versions
Plan : 5.6 DEV 2731 (for both Velocity and PaperMC servers)
FastLogin : 1.12-SNAPSHOT-a65a5f3 (build 1298)
Authme : 5.6.0 2614
AuthmeVelocity : 4.1.1
Quick setup summary is as follow :
Proxy : Velocity
--> Connect to a lobby server (PaperMC)
----> Then connect to any game server from an In Game menu (loaded with FastLogin in "Proxy mode").
Not all server have PlaceholderAPI installed (but lobby has and it report the correct state, as noted below).
Additional information
Using the following command : /papi parse NICKNAME %fastlogin_status%
get the correct output (here : Premium)
My 2cents : It seems that the FastLogin integration request the status right away at the player connection.
As stated on the GitHub page, this issue could be due to the fact that the request of account status is delayed in a proxied environment :
The text was updated successfully, but these errors were encountered: