UltimateRewards Wiki
  • Getting started
    • Support
  • Addons
  • Configs
    • Player Levels
    • Referrals
    • Loginstreak
  • USAGE
    • Installation
    • Commands
  • configuration
    • Rewards
      • Creating Reward
      • Reward Types
        • Afk Reward
          • World Afk Reward
          • Area Afk Reward
          • Region Afk Reward
        • Advent Calendar
        • Pickable Reward
        • Time Reward
        • Time Fixed Reward
        • Streak Reward
        • Streak Fixed Reward
        • Vote Reward
        • Renewable Vote Reward
        • Per Vote Reward
        • Streak Vote Reward
        • Play Time Reward
        • Renewable Play Time Reward
        • Referral Reward
        • Renewable Referral Reward
        • Purchasable Reward
        • Re-Purchasable Reward
        • One Time Reward
        • Time Limited Reward
        • Custom Reward
        • Multiple Custom Reward
        • Coupon Reward
        • Discord Reward
      • Reward Settings
      • Reward Actions
      • Reward Features
        • Auto Claim
        • Notifications
        • Reward NPC
        • Discord Support
        • Reward Requirements
        • Reward Variants
        • Selectable Rewards
        • Randomization
          • Execution Chances
          • Random Placeholders
        • AFK Checkers
        • Leaderboards
    • Menus
      • Basics
      • Example of GUIs
      • Setting Menu
    • Schedules & Timers
  • Colors & Models
  • Placeholders
  • API
    • Events
    • Examples
    • Setting up own playtime calculator
  • Policies
    • TOS
Powered by GitBook
On this page
  • Configuration File: schedules.yml
  • Behavior
  • Explanation of Fields
  1. configuration

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

The schedules.yml file defines all scheduled and repeating tasks.

Example 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: true
    type: repeatable
    interval: 300 # Every 300 seconds (5 minutes)
    actions:
      - "[console] xp give %player% 5"
      - "[message] &aYou have received 5 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

  • If no days are specified, the task runs every day at the given time.

  • If days are specified, the task runs only on those days at the given time.

Repeatable Tasks

  • Executes for all online players at the specified interval.

  • Runs continuously at the defined interval unless manually disabled.

Explanation of Fields

  • type: Defines whether the task is executed at a specific time (fixed) or at regular intervals (repeatable).

  • time (only for fixed tasks): Specifies the execution time in HH:mm format.

  • days (optional, only for fixed tasks): If provided, the task will only execute on the specified days; otherwise, it runs daily.

  • interval (only for repeatable tasks): Defines the time interval in seconds between task executions.

  • commands: A list of commands that will be executed when the task is triggered.

PreviousSetting MenuNextColors & Models

Last updated 2 months ago