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

circle-info

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:

  1. dragon_scatter

  2. preparation

  3. pvp

  4. deathmatch

Configuration structure

Everything is defined under the root phases: key.

Each phase is a keyed block like phases.<phase-id>:.

duration

How long the phase lasts, in seconds.

Border settings (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)

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:

  • main and sub text

  • title timings (fadeIn, stay, fadeOut) in Minecraft title ticks

Actions reference (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

Shows a title + subtitle to all players.

sound

Plays a sound effect to all players.

togglePVP

Enables or disables PvP for the arena.

giveItem

Gives every player an item.

itemId must be a valid Bukkit Material name.

giveEffect

Applies a potion effect to all players.

startDeathmatch

Triggers the internal deathmatch logic. This handles the deathmatch teleport and world generation.

Example breakdown: Phase 3 (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: true makes combat legal.

  • border.doShrinkage: true starts movement immediately.

  • border.shrinkTo: 300 is the target radius.

  • border.duration: 1800 means “shrink over the full phase”.

  • damagePerBlock: 8.0 punishes players staying outside the border.

  • sound + title are broadcast cues.

  • giveItem gives everyone 3x GOLDEN_APPLE at phase start.

Default configuration

chevron-rightExpand: default phases.ymlhashtag

Last updated