How to turn off cheats in minecraft after creating the world with cheats enabled [duplicate]
Solution 1:
Use a NBT editor such as NBTEdit and somewhere in the tags, there should be a tag with cheats equaling "1." Change that to 0 and cheats will be disabled. The tag is near the hardcore tag.