EbonJaeger / perworldinventory-kt

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

Users losing inventories after tping between worlds #201

Open MellenIO opened 4 years ago

MellenIO commented 4 years ago

Describe the bug I've received a few reports from players that under some circumstances their inventory can be "wiped" or reset to a previous time (ie: inventory file doesn't seem to be saving again).

To Reproduce In this specific case, the user roughly had this path:

Expected behavior Players' inventory should persist no matter the methods of transporting between worlds.

Plugin version

Server version

Additional context and logs Inventory file for survival.json not being updated:

bash-4.4$ stat survival.json
  File: survival.json
  Size: 8674            Blocks: 24         IO Block: 4096   regular file
Device: 903h/2307d      Inode: 1497759     Links: 1
Access: (0600/-rw-------)  Uid: (  992/minecraft)   Gid: ( 1001/minecraft)
Access: 2020-06-28 11:21:10.880043423 +0000
Modify: 2020-06-28 02:42:32.892399976 +0000
Change: 2020-06-28 02:42:32.892399976 +0000
 Birth: -

Other files being modified:

bash-4.4$ ls -lart
total 52
drwx------   2 minecraft minecraft   104 Jun 19 22:20 .
drwx------ 113 minecraft minecraft  8192 Jun 27 22:01 ..
-rw-------   1 minecraft minecraft  8674 Jun 28 02:42 survival.json
-rw-------   1 minecraft minecraft 10581 Jun 28 11:21 creative.json
-rw-------   1 minecraft minecraft  6603 Jun 28 11:21 survival_creative.json
-rw-------   1 minecraft minecraft  6603 Jun 28 11:21 creative_creative.json

World config set up:

groups:
  survival:
    worlds:
    - world
    - world_nether
    - world_the_end
    default-gamemode: SURVIVAL
  creative:
    worlds:
    - creative
    default-gamemode: CREATIVE