Minecraft JavaGuideYes, you can turn on keep inventory after the world already exists, and you don't need a command: switch on Keep Inventory on your server's Details tab and…
Yes, you can turn on keep inventory after the world already exists, and you don't need a command: switch on Keep Inventory on your server's Details tab and press Save changes. It applies at once while the server is on.
Prefer commands? Add yourself as an Operator on the Admins tab. A new Operator gets level 4, the same full command access Minecraft's own /op gives, whether the server is on or off when you add them. Then type /gamerule keep_inventory true in the game chat (/gamerule keepInventory true on 1.21.10 and older).
Open My Servers, open your Minecraft server and expand the Overview card. On the Details tab, scroll to the game rules, switch on Keep Inventory and press Save changes.
Nine more rules sit beside it, such as Mob Griefing. They show your world's own rules: a rule you never changed there shows your world's value, marked World: on or World: off. A rule someone changes in game with /gamerule shows up there too, marked Set in game, and Haptic keeps it at every start.
Single player has an "Allow Cheats" toggle; dedicated servers don't. Instead, a server keeps a list of Operators, the players allowed to use commands. Everyone else's commands are refused ("Unknown or incomplete command", or nothing happens). A new server's list is empty, you included.
Open My Servers, open your Minecraft server's settings, and go to the Admins tab.

Type the username you log in to the game with (exact spelling) into the search box and hit the search button. Your player profile appears.

Pick the Operator role. Level: is already set to 4, full access; leave it there. Press Add Player.

Press Save changes. If your server is online, it applies right away, no restart needed; if it is offline, at the next start. Either way you get level 4.
To undo it, click the red trash icon (Remove player) on the row and save.
Level 4 Operators get full power, including stopping the server. Only add people you would hand the keys to.
Pick a lower level before pressing Add Player if a friend should have less power. The Lvl column shows each Operator's level.
| Level | What it allows |
|---|---|
| 1 | Bypass spawn protection only, no commands |
| 2 | Cheat commands (including /gamerule) and editing command blocks |
| 3 | Also /ban, /kick and /op |
| 4 | Full access, including /stop |
Operators added from the dashboard used to get level 1 by mistake, which runs no commands. That was our bug. It is fixed for new Operators, but older rows keep their level.
On the Admins tab, look at the Lvl column. If it shows 1, click the red trash icon (Remove player) on that row and press Save changes.
Search for the player again, pick Operator (it now starts on level 4), press Add Player and Save changes.
Once you are an Operator, type this in the game chat: /gamerule keep_inventory true
From then on, nobody drops their items or XP when they die. It applies to every player instantly and is saved with your world, and the Keep Inventory switch on the Details tab follows it. Type /gamerule keep_inventory false to switch back.
Minecraft 1.21.11 renamed the game rules, and the old names now get "Incorrect argument for command". On Game Version 1.21.10 or older, type /gamerule keepInventory true instead. The Console card fixes the name for you.
While your server is online, you can run the same commands from its Console card in the dashboard, no Operator status needed. Type them without the leading slash there: gamerule keep_inventory true

/setworldspawn: the shared spawn where new players appear and players without a bed respawn. Run it standing on the spot, or pass coordinates: /setworldspawn 100 64 -200.
/spawnpoint YourName: one player's own respawn point, like sleeping in a bed.
Once your server has an Operator, only Operators can build near the world spawn. Set Spawn protection (blocks) to 0 in your dashboard settings to turn that off.
Command blocks are a separate setting: turn on Command Blocks in your dashboard settings. On Minecraft Bedrock servers, Keep Inventory is in the Game Rules group too, and the command is gamerule keepinventory true (Bedrock names are one word, in any letter case). See Minecraft Bedrock: Keep Inventory and Other Game Rules.
Typing commands without being an Operator: the server refuses them. Operator status first, then commands.
Looking for a "cheats" switch in the dashboard: Java servers have none. Operator status is the mechanism.
Typing /op for a player whose row shows level 1: the dashboard's level can be written back at the next restart. Remove and re-add them as above.
Re-creating the world: game rules can be changed any time on an existing world.
A misspelled username: Operator status only works when the name matches your in-game name exactly.
Reach us on Discord or at support@haptic.gg. Include your server name, your Minecraft username and the command you tried.