Lost all money on Name Change (UUID problem)
orgiz opened this issue ยท 3 comments
Hi,
When someone does a name change from Mojang their account will be wiped out.
I got no errors from Craftconomy3 in console when this happens, but i will get a error from a plugin called AnimatedNames:
http://pastebin.com/rSukqmBx
This is what i get in MySQL when it happens:
http://croons.se/index.php/s/pKHOl83AuTLh0R0
And here are the same account in the list plus one other account that have been wiped:
http://croons.se/index.php/s/iftNy2kl01IorvT
Version:
Craftconomy3 3.3-e72ac42-trv178
Spigot: last till today
Bungeecord: last till today
Hope you can help me with this.
Best regards,
Orgiz
What are the balances for the username_id of 45 and 235?
What i'm thinking is that it simply tore the uuid reference from the old player name when it made a new one, meaning that you would either- 1) just have to transfer funds to the new acct or 2) cheat and copy the uuid back the the old acct and edit the name to be that of the new acct...
hopefully this helps you a bit
I've never been able to replicate that issue unfortunatly. My guess is that a plugin does a money action before I have even time to change the name in my system which cause that issue. I run the event as early as early as possible in the join event. I might need to go up to pre-join event to fix that I think.