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"
| Key | Meaning |
|---|---|
eventName | Which event to start. For FFA, the eventName of an FFA profile, FFA by default |
schedule | When, see below |
durationMinutes | The event is stopped after this many minutes. 0 lets it run until it ends by itself |
announcements | Messages sent before the start, keyed by how long before |
commandsOnStart, commandsOnEnd | Console commands when the event starts and stops. {event_name} works |
rewardTiers | Commands per placement, see below |
participantCommands | Commands run for every player who took part |
Several entries can share one eventName, for example an FFA on Wednesday and one on Saturday.
Schedule
| Format | Example | Runs |
|---|---|---|
daily@HH:mm | daily@18:30 | Every day at 18:30 |
weekly@DAY@HH:mm | weekly@SUNDAY@21:00 | Every Sunday at 21:00. Days in English: MONDAY to SUNDAY |
onetime@yyyy-MM-dd@HH:mm | onetime@2026-12-31@22:00 | Once, 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
rewardTiersentry whose range holds the player's place runs its commands for them, and participantCommandsrun for every ranked player.
| Key | Meaning |
|---|---|
minRank | The first place the tier covers |
maxRank | The last place, or -1 for every place from minRank on |
commands | Console 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
| Command | Does |
|---|---|
/event list | Every scheduled event |
/event next | The next one and when |
/event gui | A 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 reload | Reads 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
Was this page helpful?