Minecraft
·
Sep 12, 2024
While you can manually save your world using admin commands, vanilla Minecraft servers don't have the ability automatically save the world. However, vanilla Minecraft server type forks like Paper and Spigot have built-in support for world auto-saving.
If your server runs Spigot, Bukkit, or a similar fork, you can configure your server's auto-save settings in the Bukkit configuration file.
Access your server's control panel and navigate to the Files tab.
Click the bukkit.yml file to edit it
Modify the ticks-per autosave field to your desired value
By default, a bukkit-forked server will have it's autosave interval set to 6000 ticks, or 5 minutes, as there are 20 ticks in 1 second. This means that every 5 minutes the server will automatically save all of it's world data.
You can change this value to any numerical value, however, it is not recommended to set this to anything lower than 5 minutes as it could cause server strain, or even crashes!
Save the file, then restart your server
If your server runs Paper, or a Paper fork like Purpur, you can configure your server's auto-save settings in the paper global configuration file. Using the Paper auto-save method will allow you to define different auto-save intervals for different worlds, along with some other additional config options.
By default, Paper servers will use the auto-save options in the Bukkit.yml configuration file, however, these Bukkit settings will be overridden if you enable and configure the auto-save options in the Paper global config.
Access your server's control panel and navigate to the Files tab.
Open your active world's folder by clicking it
If you haven't changed your server's default Paper auto-save settings before, you will need to configure the default world settings before you can modify the auto-save functionality on each world individually.
If you've already enabled the Paper auto-save features and created the world you'd like the modify the auto-save settings on, simply select it's respective world folder and edit the paper-world.yml settings associated with it.
Click the paper-world-defaults.yml file to edit it
Modify the chunks auto-save-interval field to your desired value
As mentioned previously, if you leave the auto-save-interval field set to the value of Default, your server will use the auto-save settings defined in your Bukkit.yml config file. This option takes any numerical value as seconds, so changing this field to 120
, for example, will result in your worlds auto-saving every 2 minutes by default.
You can find more information regarding the paper world configuration settings on this wiki page.
Save the file, then restart your server
That's it! You have now learned how to configure auto-saves on your Minecraft server.
Game Experience Engineer