Skip to content

Boosters

Jan Kluka edited this page Oct 23, 2026 · 1 revision

Boosters

Since 2026.3.13.0

Boosters are personal, time-limited multipliers that players redeem from an item - for example "2x Tokens for 1 hour". They are made to be sold on your webstore.

Everything lives in boosters.yml. Boosters are a module, so they switch off like any other with modules.boosters in config.yml.


How boosters behave

  • One target each. A booster boosts the income of one currency (target: tokens) or Battle Pass XP (target: battlepass-xp).
  • Queued, never replaced. Redeeming a second booster for the same target never overwrites the running one. It waits in a queue and starts the moment the first one ends. Boosters for different targets run at the same time.
  • Online time only. A booster only counts down while its owner is online, so nothing a player paid for is wasted while they are away. Boosters survive restarts.
  • Caps. A currency booster stacks with the player's personal multiplier (/pmulti), and the two together are capped by player-max in multipliers.yml. Battle Pass XP boosters are capped by boosters.max-multiplier in battlepass.yml.
  • max-queued-per-target (5 by default) limits how many boosters a player can hold per target, the running one included.

Defining boosters

boosters:
  tokens_2x_1h:
    target: tokens
    multiplier: 2.0
    duration: 1h
    item:
      material: MAGMA_CREAM
      name: '<gradient:#00FF87:#60EFFF><bold>2x Tokens Booster</bold></gradient> <gray>(1 hour)'
      lore:
        - ''
        - '<gray>Doubles every token you earn'
        - '<gray>for <white>1 hour</white> of play time.'
        - ''
        - '<yellow>Right-click to activate!'
      glow: true
Option Description
target A currency name from currencies.yml, or battlepass-xp
multiplier At least 1.0
duration 30s, 15m, 2h, 1d or combinations like 1h30m
item A normal item: material, name, lore, glow, custom_model_data, item_model, tooltip_style

The key (tokens_2x_1h) is the booster id used in commands. The default file ships three commented-out examples - remove the # to use them.


Commands

Command Permission Description
/boosters xprison.boosters Show your running and queued boosters. Aliases: /booster and anything under commands
/boosters give <player|@online> <booster> [amount] xprison.boosters.admin Give booster items (1-64). Use this in your webstore
/boosters activate <player> <booster> xprison.boosters.admin Queue a booster without an item. Works for offline players - it waits until they join
/boosters clear <player> [target] xprison.boosters.admin Remove a player's boosters, all of them or one target
/boosters list xprison.boosters.admin List every booster id

Players redeem a booster item by right-clicking it. Each item carries a unique id, so duplicated items can be traced.

With the module on, /bp booster give also queues a persistent Battle Pass XP booster instead of a temporary one.


Placeholders

Placeholder Description
%xprison_booster_<target>_multiplier% The running booster's multiplier, 1 if none - e.g. %xprison_booster_tokens_multiplier%
%xprison_booster_<target>_time_left% Time left on the running booster, empty if none
%xprison_booster_<target>_queued% Boosters waiting after the running one

Developer API

XPrisonBoostersAPI boosters = XPrisonAPI.getInstance().getBoostersApi();

boosters.queueBooster(player.getUniqueId(), "tokens", 2.0, 3600, "my-crate");
double running = boosters.getActiveMultiplier(player.getUniqueId(), "tokens");

Events: PlayerBoosterRedeemEvent (cancellable - fired before an item is used), PlayerBoosterActivateEvent and PlayerBoosterExpireEvent. See Developer API.

The default file: boosters.yml.

XPrison Logo

General

Modules

Default Configs

Enchant Configs — Passive

Enchant Configs — Currency Rewards

Enchant Configs — Key & Item Rewards

Enchant Configs — Area of Effect

Enchant Configs — Multipliers

Enchant Configs — Templates

Enchant Configs — Addons

Addons

Support

For Developers

Others

Clone this wiki locally