Multiverse-Inventories icon indicating copy to clipboard operation
Multiverse-Inventories copied to clipboard

Inventory breaks when player change their name

Open holli2801 opened this issue 2 years ago • 4 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.

holli2801 avatar Oct 25 '21 15:10 holli2801

Please fill out the issue template fully. We can't fix any bugs without the information asked for.

nicegamer7 avatar Oct 25 '21 22:10 nicegamer7

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

  1. log out in world with a independant inventory from the normal world
  2. change your username
  3. log back in and teleport to the main world
  4. 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.

holli2801 avatar Oct 26 '21 12:10 holli2801

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.

benwoo1110 avatar Oct 26 '21 12:10 benwoo1110

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.

badrpc avatar Jun 01 '22 21:06 badrpc

Duplicate of #329

zax71 avatar Oct 22 '23 10:10 zax71