# Settings Saver API docs

> Let Settings Saver save, load and sync your mod's own settings files through its profiles, on every loader from Minecraft 1.7.10 to 26.3.

URL: https://xichil.dev/docs/settings-saver/v1/ · Updated: 2026-11-16 · Applies to: Fabric, Quilt, Legacy Fabric, Forge, NeoForge, MC 1.7.10 - 26.3

Settings Saver keeps a player's settings in profiles outside any one game instance and applies them to
every instance that uses the profile. Out of the box it handles Minecraft's `options.txt`. With this API
your mod's own settings files are saved, loaded and synced the same way.

Settings Saver stays an **optional** dependency. Your mod compiles against a small API jar, and when the
player doesn't have Settings Saver installed, your mod runs exactly as before.

The whole integration is one class and one text file:

```java title="src/main/java/com/example/mymod/compat/MyModSettingsSaver.java"
package com.example.mymod.compat;

import dev.xichil.settingssaver.api.v1.ModSettings;
import dev.xichil.settingssaver.api.v1.SettingsFileFormats;
import dev.xichil.settingssaver.api.v1.SettingsSaverPlugin;
import dev.xichil.settingssaver.api.v1.SettingsSaverRegistrar;

/** Only Settings Saver loads this class. Nothing else in the mod may reference it. */
public final class MyModSettingsSaver implements SettingsSaverPlugin {
    @Override
    public void register(SettingsSaverRegistrar registrar) {
        registrar.register(ModSettings.builder("mymod", "My Mod", "2.1.0")
                .file("config/mymod.properties", SettingsFileFormats.PROPERTIES)
                .build());
    }
}
```

```text title="src/main/resources/META-INF/services/dev.xichil.settingssaver.api.v1.SettingsSaverPlugin"
com.example.mymod.compat.MyModSettingsSaver
```

## Key facts

| | |
| --- | --- |
| Package | `dev.xichil.settingssaver.api.v1` |
| Maven repository | `https://maven.xichil.dev` |
| API artifact | `dev.xichil.settingssaver:settingssaver-api:1.0.0`, as `compileOnly` (never bundle it) |
| Settings Saver's mod id | `settingssaver` (`SettingsSaverMods.MOD_ID`), the same on every loader |
| Java | the API is plain Java 8 with no dependencies: no Minecraft, loader or Settings Saver classes |
| Loaders and versions | every one Settings Saver supports: Fabric, Quilt, Legacy Fabric, Forge and NeoForge, Minecraft 1.7.10 to 26.3 |
| Side | client only; nothing is synced on a dedicated server |
| Entry point | a [SettingsSaverPlugin](https://xichil.dev/javadoc/settings-saver/v1/dev/xichil/settingssaver/api/v1/SettingsSaverPlugin.html) class listed in a `META-INF/services` file |
| Files | UTF-8 text files inside the game directory |
| Default | a mod's settings are **not** saved until the player turns the mod on for a profile, unless the mod asks for `savedByDefault(true)` |
| Compatibility | the `v1` package only changes compatibly; a breaking change would be a new `v2` package next to it |
| Javadoc | [the `api.v1` package](https://xichil.dev/javadoc/settings-saver/v1/dev/xichil/settingssaver/api/v1/ModSettings.html) and every class in it |

## Start here

1. [Installation](https://xichil.dev/docs/settings-saver/v1/getting-started/installation/index.md): add the Maven repository and the `compileOnly` dependency.
2. [Your first integration](https://xichil.dev/docs/settings-saver/v1/getting-started/first-integration/index.md): the plugin class, the service file, and
   how to check that your file reaches a profile.
3. [Build one integration for every loader](https://xichil.dev/docs/settings-saver/v1/guides/multiversion-mod/index.md): ship the same plugin class in
   every jar of a multi-loader, multi-version mod.

## Find the page you need

| I want to… | Page |
| --- | --- |
| sync one file, several files or a whole folder | [Register files and directories](https://xichil.dev/docs/settings-saver/v1/guides/files-and-directories/index.md) |
| sync single settings instead of whole files | [Choose a file format](https://xichil.dev/docs/settings-saver/v1/guides/choosing-a-format/index.md) |
| sync a TOML, JSON, INI or other structured file key by key | [Write your own file format](https://xichil.dev/docs/settings-saver/v1/guides/custom-format/index.md) |
| have my settings saved without the player turning it on | [Set what is saved by default](https://xichil.dev/docs/settings-saver/v1/guides/defaults/index.md) |
| keep window positions, paths or caches out of profiles | [Set what is saved by default](https://xichil.dev/docs/settings-saver/v1/guides/defaults/index.md#exclude-keys-by-default) |
| rename a key or change a value in a new version of my mod | [Convert settings between mod versions](https://xichil.dev/docs/settings-saver/v1/guides/mod-version-fixes/index.md) |
| store a setting differently on older Minecraft versions | [Convert settings between Minecraft versions](https://xichil.dev/docs/settings-saver/v1/guides/minecraft-fixes/index.md) |
| handle settings that depend on each other | [Merge dependent settings](https://xichil.dev/docs/settings-saver/v1/guides/merging/index.md) |
| read my config at the right moment on each loader | [Read your config after the restore](https://xichil.dev/docs/settings-saver/v1/guides/reading-your-config/index.md) |
| ship one mod for Fabric, Forge and NeoForge, old and new | [Build one integration for every loader](https://xichil.dev/docs/settings-saver/v1/guides/multiversion-mod/index.md) |
| register without a service file | [Register from your own code](https://xichil.dev/docs/settings-saver/v1/guides/registering-from-code/index.md) |
| test formats and fixes in JUnit | [Test your integration without Minecraft](https://xichil.dev/docs/settings-saver/v1/guides/testing/index.md) |
| find out why nothing is synced | [Fix an integration that doesn't sync](https://xichil.dev/docs/settings-saver/v1/guides/debugging/index.md) |
| look up a class or method | [The API at a glance](https://xichil.dev/docs/settings-saver/v1/concepts/api-at-a-glance/index.md) |

## All pages

**Getting started**

- [Installation](https://xichil.dev/docs/settings-saver/v1/getting-started/installation/index.md): repository, dependency, what not to bundle.
- [Your first integration](https://xichil.dev/docs/settings-saver/v1/getting-started/first-integration/index.md): five steps to a synced file.

**Guides** (how to do one task)

- [Register files and directories](https://xichil.dev/docs/settings-saver/v1/guides/files-and-directories/index.md): `file`, `directory` and the path rules.
- [Choose a file format](https://xichil.dev/docs/settings-saver/v1/guides/choosing-a-format/index.md): `WHOLE_FILE`, `PROPERTIES`, `KEY_VALUE` or your own.
- [Write your own file format](https://xichil.dev/docs/settings-saver/v1/guides/custom-format/index.md): implement `SettingsFileFormat`.
- [Set what is saved by default](https://xichil.dev/docs/settings-saver/v1/guides/defaults/index.md): `savedByDefault` and `excludedByDefault`.
- [Convert settings between mod versions](https://xichil.dev/docs/settings-saver/v1/guides/mod-version-fixes/index.md): `modVersionFix`.
- [Convert settings between Minecraft versions](https://xichil.dev/docs/settings-saver/v1/guides/minecraft-fixes/index.md): `minecraftFix`.
- [Merge dependent settings](https://xichil.dev/docs/settings-saver/v1/guides/merging/index.md): `SettingsMerger`.
- [Read your config after the restore](https://xichil.dev/docs/settings-saver/v1/guides/reading-your-config/index.md): the right event on each loader.
- [Build one integration for every loader](https://xichil.dev/docs/settings-saver/v1/guides/multiversion-mod/index.md): shared plugin class, one jar per loader family.
- [Register from your own code](https://xichil.dev/docs/settings-saver/v1/guides/registering-from-code/index.md): `SettingsSaverMods.register`.
- [Test your integration without Minecraft](https://xichil.dev/docs/settings-saver/v1/guides/testing/index.md): JUnit tests for formats, fixes and mergers.
- [Fix an integration that doesn't sync](https://xichil.dev/docs/settings-saver/v1/guides/debugging/index.md): log lines and their causes.

**Concepts** (how it works)

- [How syncing works](https://xichil.dev/docs/settings-saver/v1/concepts/how-syncing-works/index.md): profiles, key-by-key saving, where files are stored.
- [An optional dependency](https://xichil.dev/docs/settings-saver/v1/concepts/optional-dependency/index.md): why the service file can't crash your mod.
- [When plugins run](https://xichil.dev/docs/settings-saver/v1/concepts/when-plugins-run/index.md): the launch timeline on each loader.
- [How settings are converted](https://xichil.dev/docs/settings-saver/v1/concepts/version-conversion/index.md): the profile's form and the order fixes run in.
- [Threads and errors](https://xichil.dev/docs/settings-saver/v1/concepts/threads-and-errors/index.md): what is called from where, and what happens when it throws.
- [The API at a glance](https://xichil.dev/docs/settings-saver/v1/concepts/api-at-a-glance/index.md): every class and method on one page.

**Examples** (complete, copyable)

- [A properties config](https://xichil.dev/docs/settings-saver/v1/examples/properties-config/index.md): the smallest complete integration.
- [A sectioned config file](https://xichil.dev/docs/settings-saver/v1/examples/sectioned-format/index.md): a custom format that flattens `[section]` headers.
- [Settings across versions](https://xichil.dev/docs/settings-saver/v1/examples/settings-across-versions/index.md): three mod versions and two Minecraft eras, one profile.
- [A multi-loader mod](https://xichil.dev/docs/settings-saver/v1/examples/multi-loader-mod/index.md): every file of a mod that ships for all loaders.

## Players and server admins

The [wiki](https://xichil.dev/wiki/settings-saver/v1/index.md) explains how to install and use Settings Saver.
[Saving other mods' settings](https://xichil.dev/wiki/settings-saver/v1/guides/other-mods/index.md) is the page to point your
players to.
