Interference of the 'use_game_mode_profiles' flag.
emanuele3d opened this issue ยท 0 comments
Hi everybody, and thanks again Ben on discord for your help.
I have had an "intense" few hours with mv-inventories this morning as players on my server lost some of their survival inventories from one server session to the next.
After much trial an error the issue seemed to be boiling down to my misunderstanding of the setting use_game_mode_profiles and the fact that I set to True. A compounding source of confusion was the fact that mv-inventory seems to be alias-UNaware.
Premises:
Bukkit Version: git-Spigot-1981d55-860b354 (MC: 1.14.4)
Multiverse-Core Version: 4.1.0-b775
Multiverse-Portals Version: 4.1.0-b805
Multiverse-Inventories Version: 3.0.0-b459
Multiverse-NetherPortals Version: 4.1.0-b763
config.yml is the default one, while what follows is the content of the groups.yml file, minus comments at the top for brevity:
groups:
default:
worlds:
- spigot-1-14-4_the_end
- spigot-1-14-4_nether
- Superflat
- spigot-1-14-4
- jail
shares:
- all
survival:
worlds:
- Survival_nether
- survival
- Survival_end
shares:
- all
My understanding was that use_game_mode_profiles
in config.yml had to be true
for players to keep their inventories when going from one survival world to another or from one creative world to another. But this is not quite what it means. This flag is relevant only for those situations in which a player switches game mode within the same world. One easy recommendation then is to disambiguate the description of the flag to:
"# If this is set to true, players switching from one game mode (i.e. creative) to another (i.e. survival) -within the same world- will have separate inventories/stats for each game mode.**"
The enphasis is on the portions I reworded.
In any case, the bigger problem is that setting that flag to true
causes all sorts of mayhem.
- The three server-generated worlds (spigot-*) seem to be working fine. They are all creative worlds and work as expected.
- Entering "Superflat" (another creative world) resets the inventory to empty. Toolbars saved with c+1, c+2, etc keys are not affected and remain available.
- Entering "jail" (a creative but worldguard-restricted space) works fine and inventory behave as expected.
- Entering "survival" initially seems to work as expected with a separate inventory instead of the one from the creative worlds. But reconnecting to the server after disconnecting from it resets the inventory to empty. Notice that after disconnection the player-related yml file shows the correct inventory content. Inexplicably however on reconnection the same file gets reset or perhaps reverted to a previous time, in my case resuting in an empty inventory.
- Entering "Survival_nether" or "Survival_end" from "survival" results in empty inventories.
To be clear, setting use_game_mode_profiles
to false as per default config.yml resolves all these erratic behaviours and everything behaves as expected.
Having discussed this with Ben on discord however, this flag should not make a difference for what I experienced, hence my reporting of the issue here.
I am sorry I cannot provide further details. I did go through the server console and I didn't find anything useful for this issue, i.e. error messages. One thing that could have been useful is to somehow enable a debug mode to get more information from the console.
I remain available for further questions/help.
Nevertheless, thank you for this and the other multiverse tools!