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.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.
Internal timestamp for when the timer ends. This value is automatically set when a timer is started, cancelled, or ended.
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.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:| Format | Description | Example |
|---|---|---|
s | Seconds | 30s = 30 seconds |
m | Minutes | 15m = 15 minutes |
h | Hours | 2h = 2 hours |
d | Days | 1d = 1 day |
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:
Permissions
Timer-related permissions:| Permission | Description |
|---|---|
maintenance.starttimer | Allows using the /maintenance starttimer command |
maintenance.endtimer | Allows using the /maintenance endtimer command |
maintenance.aborttimer | Allows using the /maintenance aborttimer command |