Home›Java›Mods›Server Restart Command
Server Restart Command
ModsJava

Server Restart Command

Java mod listed for Minecraft 26.x. Downloads from the MC Java Mods app on Android.

by Veok · on Modrinth

⬇ Download on Modrinth

🔁 Server Restart Command

A simple server-side Fabric mod that lets Minecraft server owners restart their server from in-game or from the server console.

No client install needed. Players do not need this mod.


✅ What does it do?

Minecraft servers normally cannot start themselves again after they stop.

This mod fixes that by starting a small Java relauncher before the server shuts down.

The relauncher waits for the old server process to fully close, then starts the server again.

Simple. Clean. Useful.


🧠 How restarting works

When you run the restart command, the mod tries to restart the server in this order:

  1. Uses start.bat on Windows or start.sh on macOS/Linux, if the file exists.
  2. Uses launchCommand from the config file, if it is set.
  3. Uses a safe fallback command:
java -Xmx4G -jar fabric-server-launch.jar nogui

⚠️ Fallback RAM warning

If the mod has to use the fallback 4 GB RAM command, it will warn operators after the server starts again.

This warning means the owner should set the real launch command in the config file for better restart behavior.


💬 Commands

/restart
/restartserver
/restart <delay_seconds>
/restartserver <delay_seconds>

⏱️ Example

/restart 60

This restarts the server after 60 seconds.


📦 Requirements


⚙️ Config file

config/server-restart-command.properties

🛠️ Example config

launchCommand=java -Xmx12G -jar fabric-server-launch.jar nogui
preferStartScript=true
defaultDelaySeconds=5
permissionLevel=4
defaultRamWarningDelaySeconds=60

📝 Important notes


🧱 Made for server owners who want one simple thing

Restart the server without touching the server window every time.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more