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
506 stars 123 forks source link

Premium players are getting offline UUID #208

Open Spikey101 opened 6 years ago

Spikey101 commented 6 years ago

What behaviour is observed:

I decided that I don't need Bungeecord, So I set Bungeecord: false in spigot.yml, I deleted the whitelist.yml file in the fastlogin folder, I changed the spigot port to 25565, I then moved Authme from the lobby to the survival server along with fastlogin and now when a premium player joins it is giving an offline uuid, resulting in the player not having any items and double uuid for player...

Spikey101 commented 6 years ago

[17:29:50 INFO]: [FastLogin] GameProfile Stupidgiraffe has a verified premium account [17:29:51 INFO]: UUID of player Stupidgiraffe is d93a579f-082c-3035-a083-aca9927c6135

Name change check = true - Auto register = true

PaperSpigot 1.8.8

If I put bungeecord back etc, then everything is back to normal.

That is not the right UUID

games647 commented 6 years ago

Please follow the issue template. For example the most important information is the plugin version.

Do you copied the database of FastLogin from BungeeCord to Spigot too?

Spikey101 commented 6 years ago

okay sorry, I am running latest dev build and it is using mysql which is setup in the config and hasnt changed so the database is still the same.

i tried with older builds of fastlogin, same problem

if i put online mode to true in spigot.yml (or server properties not sure) then everything is fine for premium players but cracked players can no longer join (as expected)

I really dont get whats wrong here it works 100% fine on bungee

i forgot to mention, as a premium player fastlogin still logs me im automatically, just wrong uuid

games647 commented 6 years ago

Could you post the server log please.

Spikey101 commented 6 years ago

Here you go: https://pastebin.com/S5TG3kNs

I also wanted to thank you for the quick support I appreciate it :)

You can see "[17:22:19] [Thread-32/INFO]: UUID of player Stupidgiraffe is d93a579f-082c-3035-a083-aca9927c6135"

The UUID should be "977ab552-b436-4ec2-9838-91f887518470"

games647 commented 6 years ago

Could you try the dev build after the referenced commit?

Spikey101 commented 6 years ago

Yup I will try it and get back to you

Spikey101 commented 6 years ago

I tried the new build and I still have the same problem. I tried it on my dev server, so I deleted all player data, cleared my authme database, fastlogin database, deleted all player data files and joined the server freshly with the new fastlogin, it gave me an offline UUID and auto registered me.

fastlogin config: https://pastebin.com/jv0BDMdX spigot.yml : https://pastebin.com/cTY27fnM server log: https://pastebin.com/Ppjc6M4a server.properties: https://pastebin.com/657WRTF9

If ever it would make it easier for you to troubleshoot I have absolutely no problems giving you full access to ftp & console so that you can see it for yourself... just let me know and I will PM the details to you on spigotmc. (not an attempt to get you to fix the problem without effort on my side its just if its better for you!)

Edit: I am also not sure if this is related or anything, but after upgrading to the latest dev build I am not seeing the [Fastlogin] Stupidgiraffre has a verified premium account message in the console anymore. but I am still auto registered and in the fastlogin mysql database Stupidgiraffe, Premium=1 (so it knows I am premium) o.O

games647 commented 6 years ago

Please check this build: https://github.com/games647/FastLogin/releases/tag/premiumUUID

I added some debug calls, so I need the log again then. I guess another plugin is modifying the premium UUID field is therefore changes this behavior.

Spikey101 commented 6 years ago

Thanks. I noticed with this build it gives an error when trying to login so hopefully it gives you more info :)

https://hastebin.com/uxijazedij.md

games647 commented 6 years ago

No it's just that the code wasn't working. I uploaded a new build. Could you try that too?

LoneDev6 commented 5 years ago

Is it fixed or not?

LoneDev6 commented 4 years ago

Problem is that this happened to me yesterday, I joined with premium account directly after server was booting up.. probably this bugged out something. I left and join again and my UUID was fixed to premium.