DUXPLIMA Documentation

Event Manager

Scheduling PvP events daily, weekly or once, announcing them, running commands at start and end, and rewarding placements.

The Event Manager starts events on a schedule, announces them beforehand, runs commands when they start and end, and pays rewards by placement. The events themselves come from extensions: in 2.0.0 the only one is FFA. File: configs/core/EventManager.yml.

Without an event extension installed, the Event Manager does nothing: an entry for an event that does not exist is skipped, with no announcement.

A scheduled event

timezone: Europe/Istanbul
scheduledEvents:
  - eventName: FFA
    schedule: "weekly@SATURDAY@20:00"
    durationMinutes: 30
    announcements:
      15m:
        - "<gold>FFA starts in 15 minutes. Type /ffa join to take part."
      1m:
        - "<gold>FFA starts in 1 minute!"
      0s:
        - "<green><bold>FFA is starting now. /ffa join"
    commandsOnStart:
      - "say The FFA event is starting."
    commandsOnEnd:
      - "say The FFA event has ended."
    rewardTiers:
      - minRank: 1
        maxRank: 1
        commands:
          - "eco give {player} 1000"
      - minRank: 2
        maxRank: 3
        commands:
          - "eco give {player} 500"
      - minRank: 4
        maxRank: -1
        commands:
          - "eco give {player} 50"
    participantCommands:
      - "crate key give {player} participation 1"
KeyMeaning
eventNameWhich event to start. For FFA, the eventName of an FFA profile, FFA by default
scheduleWhen, see below
durationMinutesThe event is stopped after this many minutes. 0 lets it run until it ends by itself
announcementsMessages sent before the start, keyed by how long before
commandsOnStart, commandsOnEndConsole commands when the event starts and stops. {event_name} works
rewardTiersCommands per placement, see below
participantCommandsCommands run for every player who took part

Several entries can share one eventName, for example an FFA on Wednesday and one on Saturday.

Schedule

FormatExampleRuns
daily@HH:mmdaily@18:30Every day at 18:30
weekly@DAY@HH:mmweekly@SUNDAY@21:00Every Sunday at 21:00. Days in English: MONDAY to SUNDAY
onetime@yyyy-MM-dd@HH:mmonetime@2026-12-31@22:00Once, then never again

Times are in timezone, a name such as Europe/Berlin, America/New_York or UTC. An unknown name falls back to the server's own timezone, with a warning.

Announcements

Each key is a time before the start: a number and s, m, h or d. 15m is 15 minutes before, 2h two hours, 0s the moment it starts. Each value is a list of lines, sent to every online player. /pvpbroadcasttoggle does not hide them.

The 0s lines are also the start message. Without them, messages.eventStarting is sent.

Rewards

When an event finishes, its extension ranks the players: in FFA, the last one alive is 1st, the one who died last is 2nd, and so on. Then:

  • every rewardTiers entry whose range holds the player's place runs its commands for them, and
  • participantCommands run for every ranked player.
KeyMeaning
minRankThe first place the tier covers
maxRankThe last place, or -1 for every place from minRank on
commandsConsole commands. {player}, {rank} (the place) and {event_name}

A player can match more than one tier, and gets all of them. Rewards are paid only when the event ends with a winner. An event that runs out of durationMinutes, is stopped with /event stop, or never starts for too few players pays nothing. commandsOnEnd run in every case.

Running events by hand

CommandDoes
/event listEvery scheduled event
/event nextThe next one and when
/event guiA menu to see, start and stop events, and change schedules, durations and rewards
/event start <event>Starts an event now, with the commands, duration and rewards of its scheduled entry
/event stop (event)Stops one event, or the running one
/event reloadReads EventManager.yml again

The management commands need uxmpvpcore.event.admin.

Messages and placeholders

messages holds the texts of /event and the start and end lines. placeholderSettings holds what the PlaceholderAPI placeholders show when there is no event: noNextEvent (None Scheduled), noActiveEvent (None), eventNotFound (Unknown Event) and loading.

Related: FFA, Placeholders