Docs
Boosters
Boosters give a temporary bonus to a stat. They can be personal, activated with an item, or global for the whole server. Ideal for stores, votes and events.
| Configuration | boosters.yml |
| Data | Player profile; global ones in data/global-boosters.yml |
| Menu | menus/boosters.yml |
| Command | /booster (aliases /boosters, /potenciador) |
| Module | boosters |
Configuration
yaml
boosters:
money:
enabled: true
name: "@boosters.items.money-name"
icon: GOLD_INGOT
stat: sell # any stat, for example currency:shards
bonus: 0.5 # +50%
duration-seconds: 1800
stack: extend # extend, add or replace
max-bonus: 0 # 0 for no cap
max-duration-seconds: 21600
item:
material: POTION
name: "@boosters.items.item-name"
lore:
- "@boosters.items.item-lore"
glow: true
activate-actions: []When the same booster is activated again
stack | Result |
|---|---|
extend | Adds the time and keeps the highest bonus |
add | Adds the bonus and keeps the longest time |
replace | Starts over with the new values |
max-bonus and max-duration-seconds cap the result.
The item accepts {booster}, {bonus}, {stat} and {time}, and activate-actions accepts {booster}, {bonus} and {time}.
Using a booster
- Personal: the player right clicks the item. It activates and is consumed.
- Global: staff activates it for everyone with
/booster global. It also applies to players who join later, while it lasts. /boostershows active boosters with their remaining time.
Commands
Time: seconds or 30m, 1h30m. Bonus: 0.5 is +50%.
| Command | Permission | Does |
|---|---|---|
/booster | everyone | Active boosters |
/booster give <player> <type> [amount] | pulseprison.boosters.admin | Gives items |
/booster activate <player> <type> [time] [bonus] | pulseprison.boosters.admin | Activates directly |
/booster global <type> [time] [bonus] | pulseprison.boosters.admin | Activates for everyone |
/booster clear <player|global> [type] | pulseprison.boosters.admin | Removes boosters |
/booster reload | pulseprison.boosters.admin | Reloads boosters.yml |