
Command
/save-all
Saves all player data and the world to disk right now.
| /save-all [flush] |
| Permission level | 4: server owners and the server console |
| Works in | Dedicated 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. |
| Result | First reports "Saving the game (this may take a moment!)", then "Saved the game". The number /execute store saves is 1. |
| Works while saving is off | The save is carried out even if automatic saving was turned off with /save-off. |
| flush | Adding flush makes the server write all chunk data to disk immediately instead of leaving it queued. This can freeze the server for a moment. |
| Failure | If the save does not succeed, the command fails with "Unable to save the game (is there enough disk space?)". |
/save-allSaves all players and the world.
/save-all flushSaves everything and writes all chunks to disk immediately.
