Commands/save

From Minecraft Wiki
Jump to: navigation, search

These commands manage server saves.


save-all[edit | edit source]

save-all
Restrictions

Multiplayer
Operator
No command blocks

First introduced

Alpha 1.0.16_01

Saves the server to disk.

Syntax
save-all [flush]
Description
Causes the server to mark all chunks and player data as needing to be saved. They will be saved over time until all are flushed to disk.
If 'flush' is specified as the sole argument to the command, all the chunks will be saved to disk immediately, freezing the server for a short time.
Success Conditions
Succeeds if the map is successfully saved to disk. If an error occurs (such as the disk being full, or another copy of Minecraft has the map open) the command will fail.


save-off[edit | edit source]

save-off
Restrictions

Multiplayer
Operator
No command blocks

First introduced

Alpha 1.0.16_01

Disables automatic server saves.

Syntax
save-off
Description
Disables the server writing to the world files. All changes will temporarily be queued.
Success Conditions
Always succeeds unless already disabled.


save-on[edit | edit source]

save-on
Restrictions

Multiplayer
Operator
No command blocks

First introduced

Alpha 1.0.16_01

Enables automatic server saves.

Syntax
save-on
Description
Enables the server writing to the world files. This is the default behavior.
Result
Always succeeds unless already enabled.