EbonJaeger / perworldinventory-kt

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

Separate gamemode inventories not working correctly with Hyperverse #218

Open MythikAngel opened 3 years ago

MythikAngel commented 3 years ago

Describe the bug Using Hyperverse to manage worlds. When you put something in your creative mode inventory in one world, travel to another survival world (that is in a different group), switch your gamemode to creative, you'll have the items in your inventory of the other world.

To Reproduce Steps to reproduce the behavior:

  1. Make sure that separate-gamemode-inventories is set to true in the PWI config (should be by default)
  2. Make sure you have at least 2 worlds that are in different groups. Let's say we have worldA and worldB. Make sure the default gamemode of worldB is survival.
  3. While on creative mode in worldA put something in your inventory (let's say a stack of diamonds)
  4. Teleport to worldB (/hvtp worldB)
  5. Switch to creative mode (/gamemode creative)

Expected behavior The inventory should be empty. Since you've never used creative mode in worldB before.

Actual behavior The diamonds you've in your creative inventory in worldA are present in worldB.

Plugin version

Server version paper-199 (Minecraft 1.16.3) [298c9022b03cc5f8ba2d1a0cc3cac860a9d5757b]

Additional context and logs Seems to work the other way around as well. Getting the survival inventory from worldA in WorldB, if you switch the gamemodes around.

Issue doesn't seem to happen when using Multiverse to manage worlds.