Resident rename (still) resets player balance #46

Closed
opened 2018-07-10 22:14:19 +00:00 by NorbiPeti · 1 comment
NorbiPeti commented 2018-07-10 22:14:19 +00:00 (Migrated from github.com)

Once a player renames their MC account and logs in with the new name, their balance is moved out to a separate UUID in Essentials userdata during the renaming process. This was thought to be fixed by updating Towny (7e63ae1) but the issue persists.

[19:19:33] [User Authenticator #24/INFO]: UUID of player <NewName> is <GoodUUID>
[19:19:33] [Server thread/INFO]: Loaded player: <OldName>
[19:19:33] [Server thread/INFO]: Renaming <OldName> to <NewName>
[19:19:33] [pool-15-thread-1/INFO]: Creating empty config: /minecraft/main/plugins/Essentials/userdata/<???UUID>.yml
[19:19:33] [Server thread/INFO]: Renaming done.
[19:19:33] [Server thread/INFO]: <NewName>[/<IP:Port] logged in with entity id <EntityID> at (Location)
[19:19:33] [Server thread/INFO]: [Essentials] Found new UUID for <NewName>. Replacing <???UUID> with <GoodUUID>

The ???UUID doesn't seem to match either offline UUIDs (and of course the online one).

???UUID.yml:

npc: true
lastAccountName: <NewNameLowercased>
money: '<OriginalAmount>'

GoodUUID.yml:

lastAccountName: <NewName>
money: '0' # Or whatever has been earned since the name change
# etc.
Once a player renames their MC account and logs in with the new name, their balance is moved out to a separate UUID in Essentials userdata during the renaming process. This was thought to be fixed by updating Towny (7e63ae1) but the issue persists. ``` [19:19:33] [User Authenticator #24/INFO]: UUID of player <NewName> is <GoodUUID> [19:19:33] [Server thread/INFO]: Loaded player: <OldName> [19:19:33] [Server thread/INFO]: Renaming <OldName> to <NewName> [19:19:33] [pool-15-thread-1/INFO]: Creating empty config: /minecraft/main/plugins/Essentials/userdata/<???UUID>.yml [19:19:33] [Server thread/INFO]: Renaming done. [19:19:33] [Server thread/INFO]: <NewName>[/<IP:Port] logged in with entity id <EntityID> at (Location) [19:19:33] [Server thread/INFO]: [Essentials] Found new UUID for <NewName>. Replacing <???UUID> with <GoodUUID> ``` The `???UUID` doesn't seem to match either offline UUIDs (and of course the online one). `???UUID.yml`: ``` npc: true lastAccountName: <NewNameLowercased> money: '<OriginalAmount>' ``` `GoodUUID.yml`: ``` lastAccountName: <NewName> money: '0' # Or whatever has been earned since the name change # etc. ```
Gryph667 commented 2018-08-10 20:49:22 +00:00 (Migrated from github.com)

FWIW, this did NOT happen on Jay's last name change.

FWIW, this did NOT happen on Jay's last name change.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ChromaGaming/ChromaCore#46
No description provided.