phases.yml
phases.yml defines the phase timeline for Battle Royale.
A phase is a timed segment with:
a duration
optional border movement and damage
optional “on start” actions (titles, sounds, PvP toggles, items, effects)
If you want the player-facing match flow, read Phases.
Where to find it
Generated after the first server start:
plugins/Zentrix/phases.yml
What you edit here
Phase order (top-to-bottom in the file)
Phase timers and transitions
Border pacing and border damage
What runs at the start of each phase
Start with small changes. Test a full match after each edit.
Concept overview (timeline)
Phases execute one after another, like a match “timeline”.
The default sequence is:
dragon_scatterpreparationpvpdeathmatch
Configuration structure
Everything is defined under the root phases: key.
Each phase is a keyed block like phases.<phase-id>:.
duration
durationHow long the phase lasts, in seconds.
Border settings (border)
border)Border settings control whether the world border moves during a phase. They also control how punishing it is to be outside.
doShrinkage
If true, the border moves toward shrinkTo. If false, the border stays static.
shrinkTo
The target border radius in blocks.
duration (inside border)
How long the border takes to reach shrinkTo, in seconds.
This effectively controls the “speed” of the shrink.
damagePerBlock
How much damage is dealt:
per second
per block outside the border
So the farther out you are, the more damage you take.
Warnings (warningTime, warning)
warningTime, warning)Warnings are phase-end alerts shown shortly before the phase finishes.
warningTime
How many seconds before phase end the warning triggers.
warning
What gets shown when the warning triggers.
The default uses type: TITLE, which supports:
mainandsubtexttitle timings (
fadeIn,stay,fadeOut) in Minecraft title ticks
Actions reference (on-start)
on-start)on-start is a list of actions. They run in order when the phase begins.
Each list entry should contain exactly one action key.
title
titleShows a title + subtitle to all players.
sound
soundPlays a sound effect to all players.
togglePVP
togglePVPEnables or disables PvP for the arena.
giveItem
giveItemGives every player an item.
itemId must be a valid Bukkit Material name.
giveEffect
giveEffectApplies a potion effect to all players.
startDeathmatch
startDeathmatchTriggers the internal deathmatch logic. This handles the deathmatch teleport and world generation.
Example breakdown: Phase 3 (pvp)
pvp)This is what a “PvP enabled” phase usually does:
turns PvP on
starts shrinking the border
announces it (title + sound)
optionally gives supplies
How this plays out logically:
togglePVP.enable: truemakes combat legal.border.doShrinkage: truestarts movement immediately.border.shrinkTo: 300is the target radius.border.duration: 1800means “shrink over the full phase”.damagePerBlock: 8.0punishes players staying outside the border.sound+titleare broadcast cues.giveItemgives everyone3x GOLDEN_APPLEat phase start.
Default configuration
Last updated