Skip to content

Events Integration

Jan Kluka edited this page Sep 13, 2026 · 1 revision

Events Integration

The X-Prison Events addon (1.0.3+) ships an Armor Training event that doubles armor XP for 30 minutes, with a countdown bossbar, start/end titles and broadcasts, and it takes part in the Events auto-scheduler like any other event.

Requires X-Prison 2026.3.8.7+: Armors fires the core's generic PlayerProgressionXpGainEvent for every XP gain, and Events scales it — neither plugin depends on the other.


The bundled event

plugins/X-Prison/addons/Events/events/armor-training.yml (installed once on the first start with Events 1.0.3+, even on an existing installation):

id: armor-training
display-name: "<gold>Armor Training"
enabled: true
duration: 1800            # seconds (30 minutes)
weight: 8

bossbar:
  color: RED
  style: SOLID
  title: "<gradient:#ff416c:#ff4b2b><bold>Armor Training</bold></gradient> <white>(%multiplier%x Armor XP) <gray>(%time%)"

effects:
  - type: PROGRESSION_XP_MULTIPLIER
    multiplier: 2.0
    progressions:
      - xprisonarmors:armor

notifications:
  start:
    title: { enabled: true, title: "<red><bold>ARMOR TRAINING!", subtitle: "<white>Earn <red>2x Armor XP <white>for 30 minutes", fade-in: 1, stay: 3, fade-out: 1 }
    sound: { enabled: true, sound: ITEM_ARMOR_EQUIP_NETHERITE, volume: 1.0, pitch: 1.0 }
    broadcast: "<red>Armor Training has begun! <white>Earn <red>2x Armor XP <white>for the next 30 minutes!"
  end:
    title: { enabled: true, title: "<gray>Armor Training ended", subtitle: "", fade-in: 1, stay: 2, fade-out: 1 }
    sound: { enabled: true, sound: BLOCK_NOTE_BLOCK_BASS, volume: 1.0, pitch: 1.0 }
    broadcast: "<gray>Armor Training has ended. Thanks for playing!"

Start it by hand with /events start armor-training, or leave it in the scheduler pool.


The effect

PROGRESSION_XP_MULTIPLIER multiplies the XP of any progression that fires PlayerProgressionXpGainEvent, filtered by namespaced key:

Option Description
multiplier Factor applied to the XP gain
progressions Keys to affect (case-insensitive). Empty = every progression. XPrisonArmors is xprisonarmors:armor

Armor XP is scaled after the skin's own xp-multiplier, so an event stacks with skins. Two running events that both boost armor XP combine according to Events' stacking setting.


Without Events

Nothing changes — armor XP is simply not boostable by events. Armors logs Armor XP boosting via Events: needs X-Prison 2026.3.8.7+ at startup if the core is too old for the event to exist; everything else keeps working.

Clone this wiki locally