Me and my friend were playing Minecraft, and I created a world with cheats de-activated. When I opened it to LAN, I activated cheats, and changed the two game rules keepInventory (True) and mobGriefing (false). But, my items dropped when I died, and a Creeper blew up part of my Mineshaft.
Later, my friend started up a Singleplayer world (with cheats), enabled those two gamerules (to the same as on our LAN), and the same results happened.
I am pretty sure I put the command in right, seeing as I did:
/gamerule [hit tab until I got to the rule I wanted to change] [hit tab until I got to the way I wanted to change it] and hit enter.
How do I get them to work?