Repository navigation
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.
-
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 byplayer-maxin multipliers.yml. Battle Pass XP boosters are capped byboosters.max-multiplierinbattlepass.yml. -
max-queued-per-target(5 by default) limits how many boosters a player can hold per target, the running one included.
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.
| 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.
| 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 |
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.
- Home
- Features
- Setup
- Commands & Permissions
- Placeholders
- Logging
- Season Reset
- Translations
- Item Models & Tooltips
- Changelog
- Currencies
- Ranks
- Prestiges
- Rebirths
- Mines
- AutoSell
- AutoMiner
- Enchants
- Pickaxe Levels
- Pickaxe Skins
- Pickaxe Quality
- Pickaxe Settings
- Gangs
- Multipliers
- Blocks
- Bombs
- History
- Mining Stats
- Nicknames
- Battle Pass
- Quests
- Daily Rewards
- Milestones
- Leaderboards
- Boosters
- config.yml
- autominer.yml
- autosell.yml
- block-rewards.yml
- enchants.yml
- currencies.yml
- multipliers.yml
- ranks.yml
- prestiges.yml
- pickaxe-levels.yml
- pickaxe-skins.yml
- pickaxe-quality.yml
- gangs.yml
- mines.yml
- bombs.yml
- blocks.yml
- history.yml
- logging.yml
- mining-stats.yml
- rebirths.yml
- battlepass.yml
- quests.yml
- dailyrewards.yml
- milestones.yml
- leaderboards.yml
- boosters.yml
- efficiency.json
- fortune.json
- unbreaking.json
- haste.json
- speed.json
- fly.json
- nightvision.json
- jumpboost.json
- autosell.json
- tokenfinder.json
- gemfinder.json
- salary.json
- charity.json
- blessing.json
- gangvaluefinder.json
- prestigefinder.json
- explosive.json
- nuke.json
- layer.json
- laserbeam.json
- second-hand.json
- sixth-hand.json
- doomfall.json
- prism-break.json
- gem-merchant.json
- token-merchant.json
- super-token-miner.json
- double-strike.json
- prodigy.json
- blockbooster.json
