-
-
Notifications
You must be signed in to change notification settings - Fork 979
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
Balance Loss on Name Change #2400
Comments
Hi, would you mind going into your From these lines in your log, it seems like this issue may be related to #574
|
Yeah, that does seem to be related. (note: He does still have access to his homes, even though they're not in this file) |
This definitely looks like the same issue. Until it's fixed, you can work around it by finding the npc file and giving the user back their balance, as you've probably already gathered:
Where |
Thank you very much for the help! |
From a quick glance, it looks like the economy is somehow migrating the player's balance to an offline mode UUID, then the user map is detecting that offline mode UUID and migrating it back to online mode. I'm looking into this further now. Update 1Essentials/Essentials/src/com/earth2me/essentials/api/Economy.java Lines 379 to 393 in 023cf6a
Essentials/Essentials/src/com/earth2me/essentials/api/Economy.java Lines 39 to 53 in 023cf6a
It looks like the plugin is somewhere trying to access the player's economy account while the user is connecting, forcing an NPC userdata file to be created through the Update 2
Update 3To start with, I was confused - EssentialsX only internally calls Vault automatically calls Essentials/Essentials/src/com/earth2me/essentials/api/Economy.java Lines 351 to 360 in 023cf6a
This method relies on the aforementioned Update 4After looking around a bit more, I believe In an ideal world, the whole Economy API would be migrated to using UUIDs, but this would require a greater effort and for now we should fix this particular issue. |
This comment has been minimized.
This comment has been minimized.
…2432) Attempt to find user by UUID if username not present. Fixes (maybe) #2400. #2400 (comment)
@PetrichorCraft Could you update to the latest build and see if the issue persists? |
Thank you so much! Yes, I just tested, and it's fixed! |
Glad to hear this fix has worked. Thanks to everyone who helped test and replicate this. |
Information
Full output of
/ess version
:(I asked for help with this in Discord, and since then, I have updated EssentialsX. I received no help there, so I'm hoping I will get some here. To be safe, I'm posting both sets of /ess version & latest.log. This has happened on both versions.)
(This was the 2nd time it happened, first time I reported it)
(This was the 3rd time it happened, 2nd time I reported it)
Server log:
(Again, two logs)
(First time reporting it)
https://gist.github.com/PetrichorCraft/6cf4acfef77c00e427957dadda26fd75
(Second time reporting it - now)
https://gist.github.com/PetrichorCraft/4efc77ae5e262155287cab5ae6bcaaa6
EssentialsX config
https://gist.github.com/PetrichorCraft/f417be76f0d63ec35e199636ac59817e
Help request
Problem
When a player changes their Minecraft username, they lose their balance. Their sethomes are fine, they're kept at the same locations that they were set. This is not a fluke, it has happened 3 times so far, with all 3 people that have changed their usernames.
When you do /bal OldUsername, it shows the balance of the new username. Likewise with /seen. EssentialsX is our economy manager.
What I have tried
I've looked in the EssentialsX config.yml for anything related to name changes, or balance deletion. Nothing found.
I've looked in the EssentialsX userdata files to see if the old balance was recorded in the files. It was not. (And the data files are sorted by UUID - and the sethomes are fine - so it's not like a new file was created for the players with the changed names)
And I've gone onto the Discord server for help. (January 4)
The text was updated successfully, but these errors were encountered: