0%
Loading...
NolimitHost

Set game rules on a Java server

Last updated: July 23, 2026

This guide shows you how to change Minecraft Java Edition game rules through World Manager, the NolimitHost console, or in-game chat.

A game rule is a world setting that controls a specific behavior, such as whether players keep their inventory after death. Use gamerule to change world mechanics without restarting the Java server. Game rule names are case-sensitive.

Change game rules in World Manager

  1. Stop the server — Stop the Java server before editing its world settings, so the running server does not overwrite your changes.
  2. Open World Manager — Log in to the NolimitHost Game Panel at https://panel.nolimithost.cc/ and select your Minecraft Java server, then go to World Manager.
  3. Edit the active world — Find the world currently used by the server and select Edit.
  4. Open Game Rules — Go to Game Rules and change the rules you need.
  5. Save and restart — Save the world settings, start the server, and confirm the new behavior in-game.

Set a game rule with a command

Game panel console

Start the server, then open the Console in the NolimitHost Game Panel (log in at https://panel.nolimithost.cc/ and select your server first) and enter the command without /:

gamerule keepInventory true

In Minecraft

Join as an operator (an operator, or OP, is a player with admin powers), open chat, and include /:

/gamerule keepInventory true

Use this format for another rule:

gamerule <rule> <value>

Common Java game rules

RuleValueWhat it controls
keepInventorytrue or falseWhether players retain inventory and experience after death.
mobGriefingtrue or falseWhether mobs can change blocks or collect items.
doFireTicktrue or falseWhether fire spreads and extinguishes naturally.
playersSleepingPercentagePercentagePlayers required to sleep before skipping the night.
randomTickSpeedNumberFrequency of random block ticks.
doMobSpawningtrue or falseWhether mobs spawn naturally.
doDaylightCycletrue or falseWhether time and moon phases advance.
doWeatherCycletrue or falseWhether weather changes naturally.
showDeathMessagestrue or falseWhether death messages appear in chat.
commandBlockOutputtrue or falseWhether command-block output is sent to operators.

Check the current value

Enter a rule without a value:

gamerule keepInventory