Luohuayu / CatServer

高性能和高兼容性的1.12.2/1.16.5/1.18.2版本Forge+Bukkit+Spigot服务端 (A high performance and high compatibility 1.12.2/1.16.5/1.18.2 version Forge+Bukkit+Spigot server)
https://catmc.org
GNU Lesser General Public License v3.0
1.98k stars 211 forks source link

[1.16.5] PlayerDeathEvent.setKeepInventory(true) not working #486

Closed Serega007RU closed 2 years ago

Serega007RU commented 2 years ago

Environment

Minecraft version(1.12.2/1.16.5/1.18.2): 1.16.5 Build version(Get from /version command): 1.16.5-589d8617 Mods/Plugins: SaveInv

Describe the bug (If there is an error, please attach the pastebin link) When using the PlayerDeathEvent.setKeepInventory(true) method, the player's inventory is not saved

Expected behavior The player's inventory must be preserved

To Reproduce Install the SaveInv plugin, give yourself an OP, die. He will write in the chat that your inventory is saved, but in fact it is not saved SaveInv.zip

Screenshot/Video (If it doesn't exist you can ignore it)

Kotori0629 commented 2 years ago

Duplicate of #454