Skip to main content

Overview

The Maintenance plugin supports scheduled maintenance activation and deactivation using timers. Timers can broadcast countdown messages to players and automatically enable or disable maintenance mode at specified times.

Timer Types

There are two types of timers:
  • Start Timer: Counts down to enabling maintenance mode
  • End Timer: Counts down to disabling maintenance mode

Continue Timer After Restart

This feature allows endtimers to persist across server restarts.
boolean
default:"false"
If enabled and the server restarts while an endtimer is running, the timer will continue after restart.If the timer ends while the server is offline, maintenance will be disabled as soon as the server starts again.
number
default:"0"
Internal timestamp for when the timer ends. This value is automatically set when a timer is started, cancelled, or ended.
Do not manually change this value. It is managed by the plugin.

Configuration Example

Timer Broadcasts

When using timer commands, you can configure at which intervals broadcasts will be sent to players before maintenance is enabled or disabled.
array
List of seconds before the timer ends when broadcasts should be sent. Broadcasts occur at each specified interval.Default intervals:
  • 1200 seconds (20 minutes)
  • 900 seconds (15 minutes)
  • 600 seconds (10 minutes)
  • 300 seconds (5 minutes)
  • 120 seconds (2 minutes)
  • 60 seconds (1 minute)
  • 30, 20, 10, 5, 4, 3, 2, 1 seconds

Configuration Example

Timer Commands

Use these commands to manage maintenance timers:

Start Timer

Schedule maintenance to be enabled after a specified duration:

End Timer

Schedule maintenance to be disabled after a specified duration:

Time Formats

Timers support the following time formats: You can also combine formats:

Cancel Timer

Cancel a running timer:

Timer Variables in Messages

When a timer is active, you can use the %TIMER% variable in your maintenance messages to display the remaining time:
See the Maintenance Messages page for more details on message configuration.

Permissions

Timer-related permissions:

Example Use Cases

Scheduled Maintenance Window

Enable maintenance in 1 hour and automatically disable it after 2 hours:

Quick Restart Warning

Warn players of an imminent restart:
Players will receive broadcasts at the configured intervals (5 minutes, 4 minutes, 3 minutes, 2 minutes, 1 minute, 30s, 20s, 10s, etc.).

Extended Maintenance

For maintenance that persists across restarts:
Then set an endtimer: