/> />

How to Configure Auto-saving on a Minecraft Server

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.


Configuring Auto-saving with Bukkit and Bukkit/Spigot Forks

If your server runs Spigot, Bukkit, or a similar fork, you can configure your server's auto-save settings in the Bukkit configuration file.

Step 1:

Access your server's control panel and navigate to the Files tab.

Open your Shockbyte panel and click the files tab
Step 2:

Click the bukkit.yml file to edit it

Step 3:

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!

Step 4:

Save the file, then restart your server


Configuring Auto-saving with PaperMC and Paper Forks

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.

Step 1:

Access your server's control panel and navigate to the Files tab.

Open your Shockbyte panel and click the files tab
Step 2:

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.

Open the config folder by clicking on its name
Step 3:

Click the paper-world-defaults.yml file to edit it

Click the paper-world-defaults.yml file to open and edit its contents
Step 4:

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.

Set the auto save interval to your desired value
Step 5:

Save the file, then restart your server

Save the file you're editing then restart your server to apply the changes

That's it! You have now learned how to configure auto-saves on your Minecraft server.


Kobe Plane

Game Experience Engineer