PerWorldInventory icon indicating copy to clipboard operation
PerWorldInventory copied to clipboard

Inventory between GM0 and GM1 differ, when connection drops, inventory is not restored

Open MrKiller01 opened this issue 6 years ago • 7 comments

Hi, I inherited a server where this plugin of yours was running and I noticed a few off-things during investigating but did nothing with that, until now! As co-Owner of our server, I like to play too in survivalmode, just to keep me busy. Just as I gained enough XP to make some great books for my hardware, and did that, I went from survival to creative just to check a thing or two out. When I went there, I noticed that the inventory was empty. Then all of a sudden the connection to the server broke and kicked me from our server. After going through all, I thought that it would not matter, but it was not, I entered like anybody in Survival, but now I had the empty inventory, instead of a full one.. I am not gonna post on github, You do that, I have enough problems right now. Thanks for understanding... Hope to see this problem tackled very soon.... After a day of troubleshooting i found the time to pin an issue here......

MrKiller01 avatar Mar 23 '18 12:03 MrKiller01

Can you show me your PWI config?

EbonJaeger avatar Mar 24 '18 00:03 EbonJaeger

It has not been altered since we took over this server, so I did no editing, neither did we apparently watched this behavior before, until I did notice something wrong.

#- If true, the server will change player's gamemodes when entering a world #- The gamemode set is configured in the worlds.yml file manage-gamemodes: false #- If true, players will have different inventories for each gamemode separate-gamemode-inventories: true #- If true, any worlds that are not in the worlds.yml configuration file will share the same inventory share-if-unconfigured: false metrics: #- Choose whether or not to enable metrics sending. #- See https://bstats.org/getting-started for details. enable: true #- Send the number of configured groups. #- No group names will be sent! send-number-of-groups: true #- Send the total number of worlds on the server. send-number-of-worlds: true #- All settings for players are here: player: #- Save and load players' economy balances. Requires Vault! economy: false #- Load players' ender chests ender-chest: true #- Load players' inventory inventory: true #- All options for player stats are here: stats: #- Load if a player is able to fly can-fly: true #- Load the player's display name display-name: false #- Load a player's exhaustion level exhaustion: true #- Load how much exp a player has exp: true #- Load a player's hunger level food: true #- Load if a player is flying flying: true #- Load what gamemode a player is in. This is shadow-set to false if #- 'manage-gamemodes' is true, to stop infinite loop gamemode: false #- Load the maximum health a player can have max-health: true #- Load how much health a player has health: true #- Load what level the player is level: true #- Load all the potion effects of the player potion-effects: true #- Load the saturation level of the player saturation: true #- Load a player's fall distance fall-distance: true #- Load the fire ticks a player has fire-ticks: true #- Load the maximum amount of air a player can have max-air: true #- Load the current remaining air a player has remaining-air: true #- Configure the amount of time between saves, in seconds #- Default is 5 minutes (300 seconds) save-interval: 300 #- Attempt to figure out which world a player last logged off in #- and save/load the correct data if that world is different. #- REQUIRES MC 1.9.2 OR NEWER load-data-on-join: false #- Print out debug messages to the console for every event that happens in PWI debug-mode: false #- Disables bypass regardless of permission #- Defaults to false disable-bypass: false

MrKiller01 avatar Mar 25 '18 09:03 MrKiller01

I made every line that started with # into #- because i accidently used code instead of quote... Was looking for upload a file, but could not find any...

MrKiller01 avatar Mar 25 '18 09:03 MrKiller01

Using the code formatting is actually preferred by most developers. I would remove the extra - character you added and use the code formatting instead. It might look weird to you, but it looks perfectly fine to a developer. Modifying the code will actually make the issue harder to debug, and might lead to errors for you or others that don't remove the - in the final code used on their server.

sk33lz avatar Apr 02 '18 02:04 sk33lz

I've also been having this issue for a couple weeks now.

It happens every time I go to either gamemode c or a creative world (Multiverse-Core) and exit MC without first going back to gamemode 0 or a survival only world. In other words, if I exit MC from a creative world/mode, the next time I log into the server, I'm back in the main survival world, in survival mode, and all of my inventory has been cleared, sometimes replaced with what I was holding in creative.

PWI - config.txt

CanOdope avatar Apr 03 '18 08:04 CanOdope

I also have a problem where the inventory doesn't restore correctly when going to a creative world, and then back to survival. It clear both ways.. The debug mode doesn't really show anything that seems to be wrong.

Jocke155 avatar Apr 12 '18 23:04 Jocke155

I'm currently having this exact problem too, it only seems to delete mine and players' inventories when going from a creative world to a survival world, any other time it works fine. Very annoying when it keeps deleting mine and my players inventories somewhat often.

AnUglyWeirdo avatar Apr 24 '18 16:04 AnUglyWeirdo