Game rules allow you to alter or modify the gameplay of your Minecraft server without using any mods or plugins. Game rules are an extended set of configuration options available by default and can be used both in single player and multiplayer/servers.
Some examples of functions you can change with game rules include freezing the weather or time cycles, mobs dropping items when they die, players keeping the items in their inventory when they die, preventing creepers and endermen from griefing, and more.
Operator Permissions
You must be a server operator (OP) to be able to use the /gamerule command. If you are not yet an operator, check ot our tutorial here: Giving Operator (OP) to a Player
Using the command /gamerule
will display a list of game rules you can modify.
Check out some of the useful game rules listed below, what they do, and the commands to enable or disable them. For a full list of all available Java Minecraft game rules, check out the wiki page on the subject here.