EbonJaeger / perworldinventory-kt

Multi-world inventory plugin for Spigot written in Kotlin.
MIT License
46 stars 35 forks source link

Inventory loss with version v2.3.2 #141

Closed TheoRetisch1 closed 5 years ago

TheoRetisch1 commented 5 years ago

I was foolish enough to update a productive system today without extensive testing after PerWorldInventory worked reliably for years. I regretted it and had to use player file backups.

I provide the gamemodes 0 and 1 with their own inventories and individually assigned worlds.

If a player is set to gm1 after a world change, everything runs fine (correct inventory). However, if he switches back to a world where he is set to gamemode 0, his gamemode 0 inventory including his enderchest is deleted. There is no error in the log.

The problem is clearly reproducible and can be traced back to the update from v2.2.2 to v2.3.0. A downgrade fixed the problem.

separate-gamemode-inventories: true

groups:
  default:
    worlds:
    - weltn
    - End
    - Nether
    - Abbau
    - Event
    - spielwiese
    - Halloween
    default-gamemode: SURVIVAL
  creative:
    worlds:
    - Creative
    default-gamemode: CREATIVE

Paper 1.13.2 – 626 PerWorldInventory – 2.3.0

TheoRetisch1 commented 5 years ago

I think it's the same problem as in #140 just on another version.

tlitookilakin commented 5 years ago

is v2.2.2 1.14 compatible? I've been having the same problem on 2.3.1.

EDIT: 2.2.2 is indeed 1.14 compatible, but has the same problem, at least for me.

EDIT2: more info- Running pwi 2.3.1, paperspigot 1.14.2, mv-core latest version. traveling from (default) survival group -> creative group, updates with new inventory as expected. traveling from creative -> survival group overwrites the survival inventory with the creative one and keeps creative gamemode. Issue with default groups perhaps?

DerangedWifi commented 5 years ago

I tried to duplicate this issue but have had no success. Running 2.3.1. You might have another plugin which might be causing the issue by interfering.

Edit - Attempt to duplicate https://youtu.be/iWcoiJEA6PM

TheoRetisch1 commented 5 years ago

Version 2.3.1 also works fine for me. Thanks for the update!

Paper 1.13.2 - 631