ServerConfigCleaner
by malte0811
ServerConfigCleaner keeps sensitive values in server config files from being sent to connecting players, and it is available for Forge and NeoForge.
What it does
When a config option is marked as sensitive, the mod replaces its value with a default before the server syncs config to clients, so secrets such as a bot token stay on the server. Options are found by a heuristic that matches names and values.
Its version numbering differs between Forge and NeoForge because the mod targets two loaders across many releases. The mod runs on the server only, so players join without installing anything. It is published for Forge and NeoForge across 36 release versions, 1.13.2 – 1.21.4, and the code is open source under the MIT License.
Key features
Sensitive option detection
Config options that look like secrets are flagged during the first stage, and their values are set aside before any sync.
Default value replacement
A flagged value is swapped for the default set by the developer, which is usually a placeholder constant with no secret content.
Known false positives list
Most flagged options turn out to be harmless, so a default list prevents them from being treated as secrets.
Manual additions
Server owners can add their own options to the list, or report a false positive to the author through the issue tracker.
Compatibility
Latest build for each game version and loader.
1.21.x5 of 5 versions with builds
1.20.x7 of 7 versions with builds
1.19.x5 of 5 versions with builds
1.18.x3 of 3 versions with builds
1.17.x1 of 1 version with builds
1.16.x6 of 6 versions with builds
1.15.x3 of 3 versions with builds
1.14.x5 of 5 versions with builds
1.13.x1 of 1 version with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Hiding a bot token
A server running a Discord bot can keep its token in the config file without the token being sent to players who join.
Auditing config files
Server owners can check which options the mod flags, then mark additional ones that contain actual sensitive values.
Who it’s for: The mod suits server owners who keep credentials or private settings in config files and want them kept off the client. Players only join the server and do not need it.
Questions
Does ServerConfigCleaner have to be installed on clients?
Which loader should a server use?
What should a server owner do if an option is wrongly flagged?
In the catalog
ServerConfigCleaner is one of 36,990 Utility mods on ModsFinder, and one of 14,575 Utility mods for Forge. 17,979 mods support Minecraft 1.21.4.
More from malte0811
Similar mods
What the author says
NeoForge and MinecraftForge sync the entire content of all "server configs" to the client. Since this is not clear from the naming, some mods ended up putting secret values in these configs, e.g. Discord bot tokens. If you run a server using a mod with this issue, this allows any user that can join your server to…
Official listing
- Modrinth page
- modrinth.com/mod/serverconfigcleaner
- Owner
- malte0811
- Published
- 2024-12-21
- Updated on Modrinth
- 2024-12-23
- Facts verified
- 2026-10-15
