GenericGameRestarts

by Mad
for All
Restart any server that supports running a shutdown command
communityTakaro v0.4.10

Components Overview

1
config
0
commands
0
hooks
4
Cron Jobs
0
functions
0
permissions

New Module: GenericGameRestarts

NEW
January 23, 2026
Updated to version latest. Added 4 scheduled tasks: 10 minute, 5 minute, Restart, 1 minute. New configuration options: userDiscordChannel, shutdownCommand, saveCommand, supportsInGameMessages, message10Minute, message5Minute, message1Minute, messageRestart.

Configuration

Configure this module using the schemas below. The JSON schema defines the data structure, while the UI schema customizes how the configuration form is displayed.

Configuration Schema

Configuration Properties (8)

userDiscordChannel*string
userDiscordChannel

Discord Channel

shutdownCommandstring
shutdownCommand

Command that shuts down your server

saveCommandstring
saveCommand

save command - if supported

supportsInGameMessagesboolean
supportsInGameMessages

Enable in-game messages for restart warnings

Default: false
message10Minutestring
message10Minute

In-game message for 10 minute warning

Default: Server will restart in 10 minutes.
message5Minutestring
message5Minute

In-game message for 5 minute warning

Default: Server will restart in 5 minutes.
message1Minutestring
message1Minute

In-game message for 1 minute warning

Default: Server will restart in 1 minute. Saving now...
messageRestartstring
messageRestart

In-game message when restart is initiated

Default: Server restart initiated!

UI Schema

No UI schema defined. Configuration form will use default rendering.

About Configuration Schemas

The Configuration Schema defines the structure and validation rules for module settings. The UI Schema customizes how the configuration form is displayed in the Takaro interface, including field ordering, labels, and input types.

Scheduled Jobs (4)

These jobs run automatically on a schedule defined by cron expressions. Each job executes JavaScript code at specific times or intervals.

10 minute

* */3 * * *Schedule

Description

Restart aevery 3 hours

Schedule Details

Cron Expression
* */3 * * *
Human-Readable Schedule

Every minute of every 3 hours on every day of the month in every month on every day of the week

Function Implementation

10 minute Function

JAVASCRIPT

Cron Expression Format

minute hour day-of-month month day-of-week

Each field can contain numbers, ranges (1-5), lists (1,3,5), or wildcards (*). Use */n for intervals (e.g., */5 for every 5 units).

5 minute

05 */3 * * *Schedule

Description

Restart aevery 3 hours

Schedule Details

Cron Expression
05 */3 * * *
Human-Readable Schedule

At minute 05 of every 3 hours on every day of the month in every month on every day of the week

Function Implementation

5 minute Function

JAVASCRIPT

Cron Expression Format

minute hour day-of-month month day-of-week

Each field can contain numbers, ranges (1-5), lists (1,3,5), or wildcards (*). Use */n for intervals (e.g., */5 for every 5 units).

Restart

10 */3 * * *Schedule

Description

Restart aevery 3 hours

Schedule Details

Cron Expression
10 */3 * * *
Human-Readable Schedule

At minute 10 of every 3 hours on every day of the month in every month on every day of the week

Function Implementation

Restart Function

JAVASCRIPT

Cron Expression Format

minute hour day-of-month month day-of-week

Each field can contain numbers, ranges (1-5), lists (1,3,5), or wildcards (*). Use */n for intervals (e.g., */5 for every 5 units).

1 minute

09 */3 * * *Schedule

Description

Restart aevery 3 hours

Schedule Details

Cron Expression
09 */3 * * *
Human-Readable Schedule

At minute 09 of every 3 hours on every day of the month in every month on every day of the week

Function Implementation

1 minute Function

JAVASCRIPT

Cron Expression Format

minute hour day-of-month month day-of-week

Each field can contain numbers, ranges (1-5), lists (1,3,5), or wildcards (*). Use */n for intervals (e.g., */5 for every 5 units).

About Scheduled Jobs

Cron jobs allow your module to execute code automatically on a schedule. Each job has a cron expression that defines when it runs, and a JavaScript function that executes at those times. Jobs run server-side and can perform maintenance tasks, send notifications, or update game state automatically.