Open seema84 opened 5 years ago
Could you post your config.yml (located inside perworldinventory folder) and a list of your plugins? I am attempting to replicate this but am unable to. Also, is the player being tested on an op or not?
config: https://pastebin.com/vuERkvWs
the player had no op
@seema84 Changing separate-gamemode-inventories: from false to true seems to fix this problem. Having it set to true means that if you have steak and diamonds in your survival inventory, when you go into the creative gamemode (/gm creative) it'll have different items. I'm checking out the code to see if there's a way to fix this bug without changing the separate-gamemode-inventories: from false to true, so that your hand is not forced.
but I don't want a separate gamemode inventorie i hope you can fix this bug :)
@seema84 according to #106 , this person was reporting the same issue you are having, which was fixed. All you would have to do is to change can-fly and flying from true to false in the config.yml under player.stats.
If you want these two settings to be true, then you'll have to wait for EbonJaeger to find a way around this as I do not understand the section of code this problem exists in.
@EbonJaeger I believe the problem exists in ProfileManager.kt in private fun transferFlying. What I believe that needs to be added to fix the problem he is having is to check if the next world's default gamemode is survival, and if so to disable fly.
okay i will try it
Plugin Version: 2.2.2 Server Version: CraftBukkit version git-Spigot-518206a-a5b9c7b (MC: 1.13.2)
scenario: