Server Starter is a one-click installation and startup tool for Minecraft modded servers, written in Kotlin. It automates downloading and installing the server, filtering client-only mods (not 100% accurate), allocating memory, and starting the server.
- Multi-loader support: Forge, NeoForge and Fabric can all be installed and launched;
installerUrlsupports placeholder templates, so a single configuration works across multiple loaders. - Multiple modpack formats: Supports
curseforge,modrinth,zipand more; modpacks can be downloaded from an online URL or used from a local file viafile://. - Automatic client-only mod filtering: During installation, client-only mods (e.g. Sodium) are automatically removed based on CurseForge client/server markers, Modrinth platform environment info, and the TOML files inside mod jars.
- Server process management: Automatic restart on crash, restart limits (prevents infinite crash loops), Linux RAMDisk support, automatic EULA handling, and automatic lookup of a suitable JVM on PATH according to
supportedJavaVersions. - BMCLAPI mirror support: With
install.downloadSource: bmclapi, the entire NeoForge / Forge installation process and downloads of vanilla-related resources are completed in-process through the BMCLAPI mirror, which is especially useful when official sources are slow or unreachable; if the mirror install fails, it automatically falls back to the official process. - Cross-platform launcher scripts:
startserver.bat(Windows) andstartserver.sh(Linux) are distributed with each Release. The scripts automatically download the matching version of the main program and run it, so no manual jar preparation is needed.
- Java: The tool itself is compiled targeting Java 8 and runs on Java 8+; the Java version required by the server depends on the MC version — Java 8 for MC ≤ 1.16, Java 17 / 21 for MC ≥ 1.17.
- Operating system: Windows (
startserver.bat) and Linux (startserver.sh); the RAMDisk feature is currently Linux-only. - Minecraft version: 1.16.5+ is tested and working; if you run into compatibility issues, feel free to submit an issue.
- Network: Internet access is required by default to download the modpack, loaders and mods; when official sources are unreachable, enable the BMCLAPI mirror (see Configuration).
-
Go to Releases, download the latest
serverstarter-<version>.zipand extract it into your server directory. The archive contains the main program jar, thestartserver.bat/startserver.shlauncher scripts, and aserver-setup-config.yamlexample config. -
Edit
server-setup-config.yaml; at minimum you need to set:install.modpackUrl: the modpack download URL (or afile://local path); the default"./.zip"automatically uses a.zipfile in the current directoryinstall.modpackFormat: the modpack format (curse/modrinth/zip, etc.)install.installerUrl: the Loader download URL — configure it according to the notes in the config file; defaults to NeoForgelaunch.startFile: if the loader is not forge/neoforge, this value must also be changedlaunch.startCommand: if the loader's MC version is < 1.17 or is not neoforge, this value must be changed
-
Run the launcher script:
- Windows: double-click
startserver.bat - Linux:
./startserver.sh
The script automatically downloads the matching version of the main program and runs it.
- Windows: double-click
-
On first run the following happens automatically: download modpack → install Mod Loader → download mods → filter client-only mods → start the server. Just accept the Mojang EULA when prompted during the first start.
-
After installation, running the script again only starts the server; the installation state is recorded in the auto-generated
serverstarter.lock(do not edit it manually); on subsequent runs, if the config is detected to be unchanged, installation is skipped and the server starts directly. -
To force a reinstall, delete
serverstarter.lockand run again (see FAQ).
- Package the modpack: Export the modpack from CurseForge / Modrinth, or package it yourself as a zip (containing an
overrides/directory and a manifest). - Write the config: Create
server-setup-config.yaml, setmodpackUrlandmodpackFormat, and useinstall.ignoreFilesto exclude client-only files (e.g.mods/optifine*.jar,kubejs/client_scripts/**), andinstall.additionalFilesto add extra files the server needs. - Test locally: First run the full install and launch flow against your local modpack zip using
file://to make sure everything works. - Distribute: Ship the modpack zip together with
server-setup-config.yamlandstartserver.bat/startserver.sh(the script downloads the main program automatically, so server owners don't need to prepare a jar in advance).
| Argument | Behavior |
|---|---|
| (none) | Install (if needed) and start the server |
install |
Install only, do not start the server |
Example:
java -jar serverstarter-<version>.jar
java -jar serverstarter-<version>.jar installThe config file is server-setup-config.yaml (a full example is provided at the repository root). The config is split into three sections — modpack, install, launch — and supports the {{@mcversion@}}, {{@loaderversion@}}, {{@os@}}, {{@startFile@}} placeholders as well as ${ENV_VAR} environment variable substitution.
| Field | Description | Default | Example |
|---|---|---|---|
name |
Modpack name, shown in logs etc. | "" |
Example Modpack |
description |
Modpack description | "" |
This is an awesome modpack. |
| Field | Description | Default | Example |
|---|---|---|---|
mcVersion |
Minecraft version; when ~ / null / "", uses the version from the modpack manifest |
~ |
1.20.1 |
loaderVersion |
Loader version (Forge / NeoForge / Fabric); when empty, uses the version from the modpack manifest | ~ |
47.1.0 |
installerUrl |
Installer download URL template, supports the {{@loaderversion@}} / {{@mcversion@}} placeholders. Official templates for Forge / Fabric / NeoForge are in the example file's comments |
see example | https://maven.neoforged.net/releases/net/neoforged/neoforge/{{@loaderversion@}}/neoforge-{{@loaderversion@}}-installer.jar |
installerArguments |
Arguments passed to the installer (Forge uses --installServer, Fabric needs none) |
[] |
["--installServer"] |
downloadSource |
Download source: mojang (official direct connection, uses the original --installServer flow) / bmclapi (install in-process through the BMCLAPI mirror, falls back to the official flow on failure) |
mojang |
bmclapi |
mirrorUrl |
Mirror apiRoot override (only effective with downloadSource: bmclapi); when empty uses the default https://bmclapi2.bangbang93.com; an OpenBMCLAPI node can be used |
~ |
https://bmclapi.example.com |
modpackUrl |
Modpack download URL; supports http(s) URLs and file:// local paths (relative paths work too); using the fixed value "./.zip" automatically finds a .zip file in the same directory |
"" |
file://./modpacks/pack.zip |
modpackFormat |
Modpack format: curse / curseforge, modrinth, curseid, zip / zipfile |
"" |
curse |
formatSpecific.ignoreProject |
Ignore by platform identity, supported for both curse and modrinth (the Modrinth pack type also uses it to skip the client-only check); accepts Modrinth project ID and CurseForge project ID only — see "ignoreProject forms" below. Use ignoreFiles to ignore by file name |
[] |
[263420, AANobbMI] |
baseInstallPath |
Server installation base path; empty means the current directory | ~ |
server/ |
ignoreFiles |
List of files to ignore during installation; supports glob (default) or a regex: / glob: prefix to force the match type. Entries with a mods/ prefix are applied before downloading (file-name matching), the rest filter the overrides-relative paths during extraction |
[] |
mods/optifine*.jar, kubejs/client_scripts/** |
additionalFiles |
List of additional files (url + destination) to add files the server needs but the client doesn't have |
~ |
- url: https://…/spark-forge.jar destination: mods/spark-forge.jar |
localFiles |
List of local files / folders to copy (from + to) |
[] |
- from: setup/AOF 2/.minecraft to: setup/. |
checkFolder |
Check the folder before installing | true |
false |
installLoader |
Whether to install the Mod Loader; set to false to only install the modpack without a loader |
true |
false |
spongeBootstrapper |
Sponge bootstrap jar download URL (needed when launch.spongefix is enabled) |
"" |
https://github.com/simon816/SpongeBootstrap/releases/download/v0.7.1/SpongeBootstrap-0.7.1.jar |
connectTimeout |
Timeout (seconds) for connecting to any web service; increase it on poor networks | 30 |
60 |
readTimeout |
Timeout (seconds) for reading from any web service; increase it on poor networks | 30 |
60 |
install.formatSpecific.ignoreProject is a list of platform identities; a file is ignored when any of its identities matches. Prefixes are case-insensitive:
| Form | Meaning | Needs network |
|---|---|---|
263420 (plain digits, no prefix) |
CurseForge project ID (legacy curse semantics) | yes (on the Modrinth pack type a POST /v1/mods/files lookup maps fileId → modId) |
AANobbMI (8 characters, base62) |
Modrinth project ID | no (offline, compared literally) |
curseProject:263420 / cfProject:263420 |
CurseForge project ID (explicit) | same as above |
modrinth:AANobbMI / mr:AANobbMI |
Modrinth project ID (explicit, base62) | no (offline) |
Notes:
- On the Modrinth pack type the identity is taken from all
downloadslinks of an entry, not just the first one, so packs whose CurseForge links come first (with Modrinth links later) now match correctly; entries with CurseForge links only can be ignored through a CurseForge project ID (requires the fileId -> modId lookup). - CurseForge project ids need the pack's file ids to be mapped back to project ids over the network
(
POST /v1/mods/files); a missingcurseForgeApiKeyor a failed request only logs a warning and never deletes extra files or aborts the installation (fail-safe). Modrinth project ids are compared literally, offline. - When a file has several download links, the download uses
downloads[0]first and falls back to the following links in order; the file name on disk always comes from the first link. - Only canonical project ids of the two platforms are accepted:
name:/filename:/glob:/regex:(file names) andcurseFile:/cfFile:(file ids) all log a warning and are ignored — useinstall.ignoreFilesinstead. - Modrinth slugs are not resolved (e.g.
sodium): such an entry is only compared literally and will never match. Copy the project id from the pack'scdn.modrinth.com/data/<projectId>/...link instead.
| Form | Stage | Notes |
|---|---|---|
mods/iris*.jar |
skip before download + extraction filter | glob by default |
mods/glob:optifine*.jar |
skip before download + extraction filter | explicit glob |
mods/regex:.*-client\.jar |
skip before download + extraction filter | explicit regex |
kubejs/client_scripts/** |
extraction filter only | entries without a mods/ prefix are overrides-relative paths, they do not take part in the download stage |
In the download stage (mods/-prefixed entries) a file is matched against all of its possible names: the
file name of every download link, their percent-decoded forms (%2b ↔ +) and the manifest path name. So
mods/CTM-1.21-1.2.1+3.jar and mods/CTM-1.21-1.2.1%2b3.jar both hit the same file. Invalid patterns only log
a warning and are skipped.
| Field | Description | Default | Example |
|---|---|---|---|
spongefix |
Apply a launch wrapper to some mods to fix Sponge compatibility | false |
true |
ramDisk |
Use a RAMDisk for the world folder (Linux only; the server must be fully run once first before enabling, otherwise backup/restore is impossible) | false |
true |
checkOffline |
Check network connectivity against an unrelated server before starting, showing a notice when offline | false |
true |
maxRam |
Server maximum memory (-Xmx) |
"" |
5G |
minRam |
Server minimum memory (-Xms); when left empty, automatically takes half of maxRam |
"" |
2G |
autoRestart |
Whether to automatically restart the server after a crash | false |
true |
crashLimit |
Maximum number of automatic restarts allowed within the crash timing window | 0 |
10 |
crashTimer |
Crash timing window, syntax is [number]h / [number]min / [number]s |
"" |
60min |
preJavaArgs |
Arguments placed before the java command (a string, e.g. a nice value on Linux) |
~ |
nice -n 5 |
startFile |
The launch jar file name, supports the {{@mcversion@}} / {{@loaderversion@}} placeholders; must match the file name produced by the installer |
"" |
forge-{{@mcversion@}}-{{@loaderversion@}}.jar |
startCommand |
Server launch command (an array, one entry per argument), supports the {{@startFile@}}, {{@os@}} and other placeholders. MC < 1.16 launches with -jar; MC ≥ 1.17 uses @libraries/…/{{@os@}}_args.txt |
[] |
see example file |
forcedJavaPath |
Force an absolute path to the Java executable; supports ${ENV_VAR} environment variable substitution; when empty uses java from PATH |
~ |
"C:/Program Files/Java/jdk-17/bin/java.exe" |
supportedJavaVersions |
List of allowed Java versions; when enabled, automatically finds a matching JVM on PATH (falls back to java if not found) |
[] |
[17, 21] |
javaArgs |
List of additional JVM arguments (e.g. Aikar's Flags) | [] |
- '-XX:+UseG1GC' |
If the console font is blue, user confirmation is required — follow the prompts. There are currently two actions that need manual confirmation:
- EULA not accepted: on startup, the program automatically asks whether to accept the EULA. If it hasn't been accepted, type
TRUEand press Enter; the program continues automatically. - During the client mod detection stage, if the environment check obtained from the platform doesn't match the result from the local mod files, the program asks whether to keep the mod:
Y= remove,N= keep.
Delete serverstarter.lock and run the launcher script again to trigger a full reinstall. You can also change install.loaderVersion or install.modpackUrl in the config — the lock file detects the config change and reinstalls automatically. Note that serverstarter.lock is an auto-generated file; do not edit it manually.
On first launch, if eula.txt doesn't contain eula=true, the program asks interactively. In unattended or non-interactive environments, create eula.txt in the server directory in advance and write eula=true into it (please read and agree to the Mojang EULA first).
MC ≤ 1.16 needs Java 8, MC ≥ 1.17 needs Java 17 / 21. List the allowed versions in launch.supportedJavaVersions and the program will automatically find a suitable JVM on PATH; alternatively use launch.forcedJavaPath to specify a path directly. If no matching JVM is found, it falls back to java on PATH (which may fail to start).
The program filters client-only mods based on CurseForge client/server markers, Modrinth platform environment info, and TOML rules; when information is uncertain, it uses a fail-safe strategy (keeps the mod). For precise control:
- use
install.formatSpecific.ignoreProjectto ignore entire projects by platform identity: the curse pack type takes CurseForge project IDs, while the modrinth pack type also accepts Modrinth project ID/slug and CurseForge project ids (see "ignoreProject forms"); - use
install.ignoreFilesto exclude/keep specific files by name (see "ignoreFiles forms"); - if a mod is misclassified, feel free to submit an issue.
A local build requires JDK 8+ and Gradle (the Gradle Wrapper in the repo is recommended).
| Command | Artifact |
|---|---|
./gradlew build |
Main program jar (build/libs/serverstarter-<version>.jar) |
./gradlew packageDist |
Distribution directory (contains launcher scripts and example config, version number replaced automatically) |
./gradlew zipDist |
Release archive (build/release/serverstarter-<version>.zip) |
Contribution flow: Fork this repo → create a feature branch → make changes and add tests (src/test) → submit a Pull Request. For problems and suggestions, please submit an issue directly.
This project is open source under the MIT License; see LICENSE.
The original Server Starter was developed by BloodWorkXGaming (with contributions from Yoosk and others). This project is a continuation maintained by RedTeaco, and we thank all contributors.