Source-checkedAdmin & protection

ServerRestart [1.13-1.16]

by A1trdX · for Minecraft

Pretty automatic restart for your server

9.1KDownloads
7 yr agoLast updated
Spigot · PaperLoaders
1.16Latest game version

About ServerRestart [1.13-1.16]

From SpigotMC

Pretty automatic restart for your server

[​IMG]​

About
ServerRestarter is a basic tool for making scheduled automated server restart. Automatic restart will help your server to keep resources (RAM) clean and have less lags, which appears, when different plugins have memory leaks.

It also provides ability to execute actions N seconds before restart:
- Play sound
- Chat broadcast
- Title broadcast
- Commands from console (including /stop or /restart)

Features
- No dependencies, no additional tools required
- Simple, easy-configurable
- Chat, Title, Sound, Commands before restart
- Crontask time based schedule

Commands
<button type="button" class="button bbCodeSpoilerButton ToggleTrigger Tooltip JsOnly" title="Click to reveal or hide spoiler" data-target="> .SpoilerTarget">Spoiler: Commands</button>
/srt reload
Description: Reload configuration
Permission: srt.reload

/srt check
Description: See next scheduled restart time
Permission: srt.check

/srt skip
Description: Skips scheduled restart to next one
Permission: srt.skip

/srt frestart [seconds]
Description: Schedule force restart in N seconds (or immediately if not specified)
Permission: srt.frestart

Configuration
<button type="button" class="button bbCodeSpoilerButton ToggleTrigger Tooltip JsOnly" title="Click to reveal or hide spoiler" data-target="> .SpoilerTarget">Spoiler: config.yml</button>
Code (Text):
# Run at 04:20:00 every day.
schedule:
- "0 20 4 ?"

# Actions to execute N seconds before restart.
# All fiels are optional, you can choose what do you want at each step.
# Available fields:
# - chat [MESSAGE]
# - title [TITLE :: SUBTITLE :: FADE_IN_TICKS :: STAY_TICKS :: FADE_OUT_TICKS]
# - sound [SOUND_NAME]
# - command [CONSOLE_COMMAND]
actions:
&nbsp; 60:
&nbsp; - "chat | §7[§eServer§7] Restart in §c1 minute"
&nbsp; 30:
&nbsp; - "chat | §7[§eServer§7] Restart in §c30 seconds"
&nbsp; - "title | §c-= §8[§eRestart§8] §c=- :: §730 seconds left :: 40 40 40"
&nbsp; 5:
&nbsp; - "chat | §7[§eServer§7] Restart in §c5 seconds"
&nbsp; - "title | §c-= §8[§eRestart§8] §c=- :: §75 seconds left :: 15 40 1"
&nbsp; - "sound | UI_BUTTON_CLICK"
&nbsp; 4:
&nbsp; - "chat | §7[§eServer§7] Restart in §c4 seconds"
&nbsp; - "title | §c-= §8[§eRestart§8] §c=- :: §74 seconds left :: 15 40 1"
&nbsp; - "sound | UI_BUTTON_CLICK"
&nbsp; 3:
&nbsp; - "chat | §7[§eServer§7] Restart in §c3 seconds"
&nbsp; - "title | §c-= §8[§eRestart§8] §c=- :: §73 seconds left :: 15 40 1"
&nbsp; - "sound | UI_BUTTON_CLICK"
&nbsp; 2:
&nbsp; - "chat | §7[§eServer§7] Restart in §c2 seconds"
&nbsp; - "title | §c-= §8[§eRestart§8] §c=- :: §72 seconds left :: 15 40 1"
&nbsp; - "sound | UI_BUTTON_CLICK"
&nbsp; 1:
&nbsp; - "chat | §7[§eServer§7] Restart in §c1 second"
&nbsp; - "title | §c-= §8[§eRestart§8] §c=- :: §71 second left :: 15 40 1"
&nbsp; - "sound | UI_BUTTON_CLICK"
&nbsp; 0:
&nbsp; - "command | restart"
&nbsp;

My server just stops without restart
Please ensure, that you configured restart script properly in your spigot.yml configuration. Some server hostings does not allow such feature, so consider to migrate to better hosting if true.

How to use cron time?
Basically cron is a time-based job scheduler, depending on 6-7 variables.
[​IMG]
means "always" (every day, every minute etc)
? means "not specified" (day of week &amp; day of month are not compatible, so one of them should be ?)

Examples:
0 0 12
? - Every day at 12:00
0 15 14
? - Every day at 14:15
0 0 0 ?
SUN - Every Sunday at 0:00
0 0 0/12 ? - Every 12 hours starting from 0 (0, 12, ...)
You must use at least first 6 variables!

For much more detailed information visit this Tutorial
Also nice tool to compile cron time: CronMaker

Please send issues in a PM or post it in Discussion section before rating the plugin!

Highlights

From source data

Game versions

Supports 4 Minecraft versions, the newest being 1.16.

Loaders

Runs on Spigot and Paper.

Footprint

Rated a light load on a server.

ServerRestart [1.13-1.16] on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers, for Paper servers. We download it from SpigotMC, place it, and restart the server.
Server side
Required on the server
Server type needed
Spigot, Paper
Server load
light
Smallest plan we suggest
Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
2.3.0, released 2020-03-06

Game versions by loader

LoaderGame versionsNewest
Paper1.13 to 1.16 (4 versions)1.16
Spigot1.13 to 1.16 (4 versions)1.16

From 8 recorded builds of ServerRestart [1.13-1.16].

Recent builds

BuildReleasedGame versionsLoaders
2.3.02020-03-061.13 to 1.16 (4 versions)Spigot, Paper
2.2.02019-07-20n/aSpigot, Paper
2.1.12019-06-12n/aSpigot, Paper
2.1.02019-06-10n/aSpigot, Paper
2.0.02019-04-24n/aSpigot, Paper
1.2.02018-10-23n/aSpigot, Paper

Run ServerRestart [1.13-1.16] on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on SpigotMC as “Admin”

Admin & protection

Permissions, moderation, anti-cheat and land protection for the people running the server.

Runs on your server

From source side support

SpigotMC lists ServerRestart [1.13-1.16] as required on the server. Check its SpigotMC page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
SpigotPaper
Runs on
Serverrequired on the server
Game versions
1.16 and 3 earlier
Requires
One-click install needs a Paper server.

Verified at the source

  • ✓SpigotMCOfficial listing, checked 2026-10-02Open ↗
  • ✓AuthorA1trdX, as published on SpigotMC
  • ✓LicenseNot published by the sourceFree

ServerRestart [1.13-1.16], answered

Generated from the mod’s own source data.

Do my players need to install ServerRestart [1.13-1.16]?

SpigotMC lists ServerRestart [1.13-1.16] as required on the server. Check its SpigotMC page to see whether players need it too.

Which loaders does it support?

Spigot and Paper.

Is it free?

Yes. ServerRestart [1.13-1.16] is free to download from SpigotMC.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run ServerRestart [1.13-1.16] on a Minecraft server.

Deploy in about a minute from $4.99 a month, then add ServerRestart [1.13-1.16] in one click.