
Create custom timers with command execution capabilities. Perfect for minigames, events, or automated server tasks.
OnTime mod allows you to create custom timers with command execution capabilities. Perfect for minigames, events, or automated server tasks.
All commands require operator permission level 2 by default (configurable).
/timer create <name> <hours> <minutes> <seconds> [countUp]
/timer create speedrun 0 30 0 true (30-minute count-up timer)/timer start <name>
/timer pause
/timer stop
/timer reset [name]
/timer remove <name>
/timer set <name> <hours> <minutes> <seconds>
/timer add <name> <hours> <minutes> <seconds>
/timer hide [targets]
/timer hide - Toggle for yourself/timer hide @a - Toggle for all players/timer hide @p - Toggle for nearest player/timer hide PlayerName - Toggle for specific player/timer silent
/timer listConfiguration file is located at config/ontime/config.json and is automatically created on first run.
{
"requiredPermissionLevel": 2,
"maxTimerSeconds": 86400,
"colorHigh": "#FFFFFF",
"colorMid": "#FFFF00",
"colorLow": "#FF0000",
"thresholdMid": 30,
"thresholdLow": 10
}
requiredPermissionLevel (0-4): Permission level required to use /timer commands
/stop)maxTimerSeconds (integer): Maximum allowed timer duration in seconds
colorHigh (hex color): Color for timer when above mid threshold
#FFFFFF (white)colorMid (hex color): Color for timer between low and mid thresholds
#FFFF00 (yellow)colorLow (hex color): Color for timer below low threshold
#FF0000 (red)thresholdMid (0-100): Percentage threshold for mid color
thresholdLow (0-100): Percentage threshold for low color
The timer display changes color based on remaining time percentage:
Color transitions:
Timers are stored in config/ontime/timers.json with the following information:
Player preferences (timer visibility) are stored in config/ontime/player_preferences.json.
You can manually edit config/ontime/timers.json to add a command that executes when the timer completes:
{
"timers": [
{
"name": "event",
"command": "say The event has started!",
...
}
]
}
The command is executed with permission level 4 (server console level).
When a timer is running and the server shuts down:
This ensures no time is lost during planned maintenance or crashes.
OnTime includes translations for:
This mod is available under the CC0 license.
Created by MateoF24