BentoBoxWorld / InvSwitcher

World inventory switcher. Handles health, exp, advancements, inventory, etc.
Eclipse Public License 2.0
2 stars 5 forks source link

Emergency one: InventorySwitcher deletes inventory on WorldSwitch after /bbox reload #7

Closed wellnesscookie closed 5 years ago

wellnesscookie commented 5 years ago

Description InventorySwitcher will not work correctly after using /bbox reload

Steps to reproduce the behavior:

Solution to fix:

Expected behavior

Server Information:

Additional context After this had happened, I immediately went to start my test server and try to replicate this - and yes, it happens after execution of /bbox reload command. I tagged it as Emergency, as I don't wish for any other server that has players on it to lose their inventory after this.

wellnesscookie commented 5 years ago

The data in .json is filled with nulls of course. The one and only file on my server: https://pastebin.com/G8pd07cw

tastybento commented 5 years ago

Hmm, I can't replicate this yet. I'm using JSON database. I'll try with MYSQL. Can you still replicate on your test server? Do you see any errors in the console?

Replicated on both. I had to change worlds more than once to get it to remove the inventory.

tastybento commented 5 years ago

Okay, this was fixed already on 0.0.4-SNAPSHOT. It was due to me not registering the teleport listener with BentoBox.