Keep Inventory

I want to make so the when a player dies their inventory stays not even a single item should be lost and enchantments and durability should be exact.
Continue to help post