Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/save-all

Command

/save-all

Saves all player data and the world to disk right now.

Syntax

/save-all [flush]

Details

Permission level4: server owners and the server console
Works inDedicated multiplayer servers only; it does not exist in singleplayer or in worlds opened to LAN. Needs permission level 4 (owners): the server console or an operator with level 4. Command blocks and functions cannot run it, because their permission level is 2.
ResultFirst reports "Saving the game (this may take a moment!)", then "Saved the game". The number /execute store saves is 1.
Works while saving is offThe save is carried out even if automatic saving was turned off with /save-off.
flushAdding flush makes the server write all chunk data to disk immediately instead of leaving it queued. This can freeze the server for a moment.
FailureIf the save does not succeed, the command fails with "Unable to save the game (is there enough disk space?)".

Examples

/save-all

Saves all players and the world.

/save-all flush

Saves everything and writes all chunks to disk immediately.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)