Inventory breaks when player change their name
holli2801 opened this issue ยท 5 comments
When a player changes their name, only the inventory from the world they logged out will be kept. Every other inventory will be deleted and is lost.
Please fill out the issue template fully. We can't fix any bugs without the information asked for.
Information
Server version: 1.17.1 Paper version git-Paper-353
Full output of /mv version -p: https://j.mp/3BiHnwV
Details
When a player changes their username and rejoins the server, their inventory is only kept for the world they were last playing in.
Plugin list
CoreProtect 20.1
DeathMessages 1.3.8
Dynmap 3.2 beta 2
LuckPerms 5.3.53
Multiverse Core 4.3.1
Multiverse Inventories 4.2.2
ProtolLib
Themis 0.10.1
worldedit 7.2.6
Steps to reproduce
- log out in world with a independant inventory from the normal world
- change your username
- log back in and teleport to the main world
- inventory gets reset
Expected behavior
Changing the username shouldnt have an effect on any inventory
PS: I dont have the capacities to reproduce it without any other plugins, but since no other plugin touches the inventory, it shouldnt be affected.
This is fixed in the latest dev builds (but only for future name changes). Once the name is changed, there is no way to revert or fix it.
Something similar happened today to my son's account. He renamed it and when he logged in back into our local server his inventory was empty. I ended up renaming all files in plugins/Multiverse-Inventories which had the old nick in the filename and manually edited all files which included the old nick in contents and it looks like it worked. I think our server has Multiverse-Inventories 4.2.3, I'm not sure whether it includes changes mentioned above or not.
Duplicate of #329