Minecraft gamerule keepinventory [duplicate]

I'm playing minecraft 1.7.2 and I type /gamerule keepinventory true, and it says that there's no keepinventory rule. How do I keep inventory on death? I'm fighting the Ender Dragon and keep dying.


Solution 1:

The /gamerule command is case-sensitive. A quick check on the Minecraft Wiki indicates that the correct casing would be /gamerule keepInventory true, with a capital 'I'.