greatman / craftconomy3

A Economy plugin for Bukkit & Canary Recode!
GNU Lesser General Public License v3.0
36 stars 66 forks source link

Lost all money on Name Change (UUID problem) #50

Open orgiz opened 9 years ago

orgiz commented 9 years ago

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

KillerOfPie commented 9 years ago

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

tkausl commented 8 years ago

Blame Vault, its their fault

greatman commented 8 years ago

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.