Progression and economy

Scheduled XP events

Schedule bonuses and configure the duration of each event.

Minecraft 1.21.1 · Fabric≈ 1 min read
CobblemonFabric

Schedule a daily bonus

Configure global_xp_boost in config.yml:

global_xp_boost:
  enabled: true
  time_format: 'HH:mm'
  timezone: 'America/Sao_Paulo'
  prevent_duplicate_execution: true
  schedules:
    noite:
      enabled: true
      start: '20:00'
      duration_minutes: 45
      xp_bonus_percent: 50.0

Use a different ID for each schedule. start uses a 24-hour clock; duration_minutes sets duration, and xp_bonus_percent: 50 gives +50% XP. Use timezone: SYSTEM for the machine's time zone.

Keep prevent_duplicate_execution enabled to avoid repeating a schedule within the same minute window. Only one global event can be active at a time; avoid overlaps and coordinate schedules across your server network.

Use global_xp_boost.broadcasts.enabled for announcements. In broadcasts.start, use {percent} and {duration}; in broadcasts.invalid_schedule, use {id}.

Apply changes with /mbattlepass reload. The server must be running at the scheduled time. To start immediately, use /mbattlepass event start 30 50; end with event stop and adjust an active event with event edit percentage 25 or event edit timer 60, under the /mbattlepass root.