Schedules & Timers
This page explains how to create and manage scheduled and repeating tasks for your server. Users can configure tasks that execute commands at specific times or intervals.
Configuration File: schedules.yml
schedules.ymlExample Structure
schedules:
daily_reward:
enabled: true
type: fixed
time: "12:00" # 12:00 PM
days: [MONDAY, WEDNESDAY, FRIDAY] # Only runs on these days
actions:
- "[console] say Daily reward executed!"
xp:
enabled: false
type: repeatable
interval: 300 # Every 300 seconds (5 minutes)
actions:
commands:
- "[console] xp give %player% 5"
- "[message] &aYou have received 5 Level XP!"
variants:
double_xp:
permission: ultimaterewards.doublexp
actions:
- "[console] xp give %player% 10"
- "[message] &aYou have received 10 Level XP!"
hourly_announcement:
enabled: true
type: repeatable
interval: 3600 # Every 3600 seconds (1 hour)
actions:
- "[console] broadcast A new challenge has started!"
midnight_reset:
enabled: true
type: fixed
time: "00:00" # Midnight
actions:
- "[console] say Midnight reset triggered!"Behavior
Fixed Tasks
Repeatable Tasks
Explanation of Fields
Last updated