Boosters
On this page(27)
A booster multiplies something a player deals or earns. It can be their swing damage, their swings per second, their enchant chances, their Luck or a currency gain. Everything starts at x1, and boosters push it up. Admins give them, players store booster items in a backpack, global events boost everyone, and many modules push their own.
| Files | boosters.yml, the menus guis/boosts.yml, guis/booster-backpack.yml, guis/booster-storage.yml |
| Player commands | /boosts, /boosterbackpack (alias /boosterbp) |
| Admin commands | /dungeons admin boost ... |
| Reward tags | [booster] <type> <bonus> <time> [amount], [reset-boosters] [target] |
| Switch | Always on (core). Each target has its own enabled: |
How it works
A booster belongs to one player and has:
| Part | What it is |
|---|---|
| id | Unique per player. A booster given with an id the player already has REPLACES it. |
| name | How /boosts shows it: "Admin" for an admin booster, the name a plugin or module gives. |
| target | What it multiplies (below). |
| kind | Additive (a bonus added to the base) or multiplicative (a factor). |
| value | The bonus or the factor. |
| time | For good, or until it ends. |
Targets
| Target | What it multiplies |
|---|---|
damage | The damage of each swing of the sword on the zone mobs (base-damage x the tier's damage-multiplier x this total). |
swings | The swings per second on the zone mobs, still at most combat.max-swings-per-second of the sword config. |
enchants | The proc chance of every sword enchant, at most 100%. |
enchant:<id> | The proc chance of one enchant (enchant:greed), active while enchants is. |
luck | The player's Luck points. |
a currency id (money) | What a player earns of that currency by playing: zone mob kill rewards (after the rarity's reward-bonus) and the enchants' give-currency action. |
Never boosted:
/money give,payandset, and those of every currency;- the rewards and resets of the leveling tracks;
- the vanilla damage of the sword and the fixed damage of an enchant;
- a pouch.
An enchant that uses the swing's {damage} follows the damage total, because the swing itself is boosted.
The math
Additive boosters add their bonus to the base. The base is 1 plus the sum of the bonuses of the player's live additive boosters of that target. It never goes below 0.
Multiplicative boosters have a factor (x2). The factors of one target are SUMMED among themselves: the multi is that sum, or 1 without any.
The total is base x multi.
| Boosters of one target | Base | Multi | Total |
|---|---|---|---|
| none | 1 | 1 | x1 |
| Admin +1 | 2 | 1 | x2 |
| Admin +1, Event +2 | 4 | 1 | x4 |
| two boosters of +10 | 21 | 1 | x21 |
| x2 | 1 | 2 | x2 |
| x100, x100 | 1 | 200 | x200 |
| x100, x100, +1 | 2 | 200 | x400 |
Why two kinds. Additive bonuses stack gently, so many small sources stay balanced. A multiplicative factor scales the whole total, for rare big boosts.
Edge cases
- A target switched off is x1. The boosters given for it are kept: switch it on again and they count.
- A total of 0 on
damagemeans the sword does not hit. So does aswingstotal that takes the rate below 0.05 per second. - A total of 0 on a currency pays nothing.
- A
messageoractionbarstep of an enchant that shows{amount}shows it BEFORE the booster. With a boost, the player gets more than it says.
Enchant chance
The proc chance of an enchant is:
chance at your level
x (1 + additive bonuses of enchants + additive bonuses of enchant:<id>)
x (sum of the factors of both targets, 1 without any)
at most 100%An enchants booster of +1 doubles every chance: 2% becomes 4%, and 60% becomes 100%. %sndungeons_enchant_<id>_boosted_chance% shows the result.
Luck
Luck points = round((luck total - 1) x 100). A booster of +0.5 gives 50 Luck. Multiplicative luck boosters sum their factors and multiply the base. So +0.5 and x2 together give (1.5 x 2 - 1) x 100 = 200 Luck.
Stored and memory boosters
| Kind | Where it lives | Who makes it |
|---|---|---|
| Stored | The table sndungeons_boosters, written straight on each change. Survives quits and restarts. Works on offline players. | Every admin booster, plugins that ask for it. |
| Memory | The server's memory. Needs the player online and loaded. Survives a relog, gone on a restart. | Modules, enchants (add-booster, momentum), plugins through the API. |
A timed booster counts offline time too: it ends at its time whether the player is online or not. A backpack booster is the exception: it pauses while its owner is offline.
When a player's data takes more than about 40 seconds to load on a join, their stored boosters count as x1. That lasts until they join again or one of their boosters changes (one console warning).
Configuration
boosters.yml is managed: new keys are merged on boot while update-configs is true. /dungeons reload applies a change.
targets
| Key | Default | What it does |
|---|---|---|
targets.damage.enabled | true | Switches the damage target. |
targets.damage.display-name | '&cDamage' | How the target is shown. |
targets.swings.enabled | true | Switches the swings target. |
targets.swings.display-name | '&eSwings' | |
targets.enchants.enabled | true | Switches the enchants target. Off also switches off every enchant:<id>. |
targets.enchants.display-name | '&dEnchant chance' | |
targets.luck.enabled | true | Switches the luck target. |
targets.luck.display-name | '&a☘ Luck' | |
targets.currencies.<id>.enabled | money: true, souls: true, experience: false | One entry per currency whose gains may be boosted. |
targets.currencies.<id>.display-name | the currency's name | Optional. |
targets.enchant-names.<enchant> | none | Optional names for single-enchant targets (greed: '&6Greed chance'). Without one, it shows the enchant id. |
targets.currencies is marked # sn:extensible: it is yours. A currency that is not listed is never boosted, and an entry you delete stays deleted. An entry that names no loaded currency, or names damage, swings or enchants, is ignored with one warning.
luck is never picked by an automatic global event, nor expanded by an all global item, unless you list it in events.eligible-targets.
multiplier-decimals and admin-boosts
| Key | Default | What it does |
|---|---|---|
multiplier-decimals | 2 | Most decimals of the multipliers the booster texts show (0 to 6). Trailing zeros are dropped. |
admin-boosts.name | '&dAdmin' | The name of an admin booster given without one. |
admin-boosts.min-multiplier | 0.01 | The smallest amount one admin booster may add or multiply by. |
admin-boosts.max-multiplier | 100 | The largest amount one admin booster may add or multiply by. |
The min and max bound both the +<n> and the x<n> forms. They also bound booster items, backpack deposits, hand-started events, global items and [booster] lines. So an admin booster never lowers a total.
The boosts menu lines
| Key | Default | What it does |
|---|---|---|
menu-line | ' &8- {name}&7: &f+{multiplier} &7{time}' | One line per active additive booster (_list, _base_list). |
menu-empty | '&7No active boost.' | _list while the target has no booster. |
menu-line-multi | ' &8- {name}&7: &fx{multiplier} &7{time}' | One line per active multiplicative booster (_list, _multi_list). |
menu-empty-base | '&7No base boost.' | _base_list without an additive booster. |
menu-empty-multi | '&7No multiplier.' | _multi_list without a multiplicative booster. |
Tokens: {name}, {multiplier} (the bonus or the factor), {time} (time left, or the permanent word) and {id}.
items
| Key | Default | What it does |
|---|---|---|
items.defaults.material | POTION | The material of every booster item. |
items.defaults.name | '&a{type} Booster &7({multi}x)' | The item name. |
items.defaults.lore | four lines | The item lore. |
items.defaults.glow | true | The enchantment glint. |
items.defaults.custom-model-data | 0 | 0 means none. |
items.per-target.<type> | souls: {material: MAGMA_CREAM} | The look of one type: only the keys written here, the rest from defaults. Marked # sn:extensible. |
items.cooldown-ticks | 10 | Ticks between two right clicks of a booster item (20 = 1 second). |
items.worlds | [] | The worlds a booster item can be stored in. [] means every world. |
Tokens: {type} (the type's display name), {multi} (the effective multiplier: an item of bonus 2 shows 3) and {time}.
backpack
| Key | Default | What it does |
|---|---|---|
backpack.withdraw-chunk | 1h | The time a left click on a stored entry takes out as an item (30m, 1h, 1d). |
backpack.booster-name | '&aBackpack' | The name of a backpack booster in /boosts. |
events
| Key | Default | What it does |
|---|---|---|
events.enabled | true | false stops automatic events. An admin can still start one. |
events.eligible-targets | [] | The types an automatic event rolls from. [] means every enabled type except luck. |
events.bonus.min, max | 0.5, 2.0 | The bonus rolled, ADDED to x1: 0.5 to 2.0 is x1.5 to x3. |
events.duration.min, max | 5m, 15m | The time rolled. |
events.interval.min, max | 45m, 75m | The wait from the end of one event to the start of the next. |
events.name | '&6Global Event' | The name of the event booster in /boosts. |
events.broadcast-start | three lines | Sent to everyone at the start. {type}, {multi}, {time}. [] means nothing. |
events.broadcast-end | one line | Sent to everyone at the end. |
events.bossbar.enabled | true | The boss bar of a running event. |
events.bossbar.title | '&e{multi}x {type} Event: &f{time}' | {time} is the time left. |
events.bossbar.color | YELLOW | PINK, BLUE, RED, GREEN, YELLOW, PURPLE or WHITE. |
events.bossbar.style | SOLID | SOLID, SEGMENTED_6, SEGMENTED_10, SEGMENTED_12 or SEGMENTED_20. |
global-item
| Key | Default | What it does |
|---|---|---|
global-item.material | EXPERIENCE_BOTTLE | The global booster item. |
global-item.name, lore, glow, custom-model-data | see the file | Its look. {type}, {multi}, {time}. |
global-item.cooldown-ticks | 10 | Ticks between two right clicks. |
global-item.booster-name | '&6Global Booster of {player}' | Its name in /boosts. |
global-item.all-name | '&dAll' | How the type all is shown. |
global-item.broadcast, broadcast-end | see the file | Sent to everyone at the start and end. {player} too. |
global-item.title, subtitle | '&6&lGLOBAL BOOSTER', '&e{player} &7- &e{multi}x {type}' | The title everyone gets at the start. '' means none. |
global-item.sound | ENTITY_PLAYER_LEVELUP | The sound everyone gets at the start. |
global-item.bossbar.* | PURPLE, SOLID | The same keys as events.bossbar, with {player}. |
The commands block
| Key | Default | What it does |
|---|---|---|
commands.main.command | boosts | The /boosts root. '' means no /boosts at all. |
commands.main.aliases | [] | Other names. |
commands.main.permission | '' | '' means everyone. |
commands.main.menu | boosts | The menu /boosts opens (guis/boosts.yml). '' lists the boosts in chat. |
commands.backpack.command | boosterbackpack | The backpack root. '' means none. |
commands.backpack.aliases | [boosterbp] | Other names. |
commands.backpack.permission | '' | The backpack buttons check it too. |
commands.backpack.menu | booster-backpack | The menu it opens. |
Admin boosts and /boosts
/dungeons admin boost give <player> <target> <amount> [time] [id] [name...] gives a player a stored booster, online or offline.
| Argument | Rules |
|---|---|
<target> | An active target: damage, swings, enchants, enchant:<id>, luck or a currency id. |
<amount> | 10 (or +10) is a BONUS: damage 10 makes x11, 0.5 makes x1.5. x2 is a FACTOR: the total is multiplied by 2. |
[time] | ONE token: 30s, 30m, 2h, 1d or 1d2h. 0, or no time, gives it for good. |
[id] | 1 to 64 of a-z, 0-9, _ . : - (stored lowercase). Without one it is admin-<n>. The same id replaces the booster. |
[name...] | The rest of the line, spaces and colors included, 1 to 128 characters. To give a name, give an id first. |
Example. Run give Steve damage 1 10m, then give Steve damage 2 1h event &6Event. Steve gets admin-1 (+1 for 10 minutes) and event (+2 for an hour). His damage total is x4.
boost take <player> <id>removes one booster by its id.boost clear <player> [target]removes every booster of the player, or those of one target.boost list <player>lists the boosters with their id, name, target, kind, value and time left. A booster of a target switched off shows(off).
The /boosts menu
/boosts opens guis/boosts.yml:
####B####
#I#D#S#E#
#L#M#O##X| Cell | What it shows |
|---|---|
I | You. |
D, S, E, L, M, O | Damage, swings, enchant chance, Luck (a click runs /luck), money, souls. |
B | The booster backpack ([booster-backpack] main). |
X | Close. |
Each target has two items on its cell. The first, with view-requirements on %sndungeons_boost_<target>_active% == true, lists the boosters. The second is the idle look. A target with enabled: false shows its placeholders as written: give it no item.
With commands.main.menu: '', /boosts lists every active target in chat instead. For example: Damage: 4.00x | Admin +1.00 (9m 59s) | Event +2.00 (59m 59s).
Booster items and the backpack
A booster item is a booster a player carries.
/dungeons admin boost item <player> <type> <bonus> <time> [amount]gives it. What does not fit goes to the backpack.- The
[booster]reward tag stores it straight in the backpack. <type>isdamage,swings,enchants,luckor a currency id (neverenchant:<id>).<bonus>2(or+2) makes a x3 item.x2is the exact multiplier (a x2 item).- Items of the same type, multiplier and time stack.
A right click with a booster item stores the WHOLE stack in the player's backpack. The item comes back, never dropped, when the world is not in items.worlds, the type is off, or a plugin cancels it.
The backpack menu
/boosterbackpack (also the backpack button of /boosts) opens guis/booster-backpack.yml:
####I####
#########
##DSEMOL#
#########
B##AGZ##X| Cell | What it does |
|---|---|
I | Info. |
D, S, E, M, O, L | One tile per type: what it stores and its active booster. A click opens its storage. |
A | Start All. |
G | Deposit: stores every booster item of the inventory. |
Z | End All. |
B, X | Back to /boosts, close. |
A type's tile opens guis/booster-storage.yml, a paged menu: one entry per stored multiplier (highest first), plus Start or End.
The rules.
- One booster per type runs at a time. Start takes the entry of the HIGHEST multiplier of the type.
- When it runs out, the next one of that type (highest first) starts by itself.
- End puts the time left back, merged with its multiplier.
- Left click on an entry takes
backpack.withdraw-chunk(1h) out as an item. Right click takes the whole entry. - A backpack booster only counts down while its owner is online. A server crash cannot pause it: that time is lost.
The end and auto-start notices follow the player's Booster Notices setting (core.booster-notices) in /settings.
/dungeons admin boost backpack <player> <type> <bonus> <time> [amount] stores boosters in any player's backpack, offline too. boost take <player> backpack-<type> ends that type's backpack booster (its time goes back).
Global boosts
A global boost boosts EVERYONE online, and whoever joins while it runs. There is at most one global event and one global booster item at a time. Both run on real time (also with nobody online), resume after a restart, and add up with the player's own bonuses. A 2x global boost is a bonus of +1.
Events. With events.enabled, the plugin rolls a type, a bonus and a time. The first starts at once. When one ends, the next one is rolled and kept (end plus a wait from interval), so a restart keeps it too.
Example. A rolled bonus of 1.0 on money is a x2 money event. A player with an Admin +1 money booster then earns x3.
boost event start <type> <bonus> <time>starts one by hand (2is x3,x2is x2).boost event stopends it.boost event nextshows the running event or the next one rolled.
Global booster item. boost global give <player> <type|all> <bonus> <time> [amount] gives one to an online player. A right click starts it for everyone. A broadcast, a title, a sound and a boss bar name who activated it. all boosts every enabled type. While one runs, another is refused and stays in the hand.
The boss bars (and the global booster title) follow the Booster Bars setting (core.booster-bars). The chat broadcasts always show.
Reward tags
| Tag | What it does |
|---|---|
[booster] <type> <bonus> <time> [amount] | Stores amount boosters (1 to 2304) in the player's backpack, online or not. 2 is x3, x2 is x2. |
[reset-boosters] [target] | Removes every booster of the player, or those of one target, memory and stored. |
[reset-boosters] also takes the add-booster and momentum boosters. It never takes the backpack boosters. It never takes the boosters the modules keep for what the player owns either. These come from perks, auras, totems, armors, crystals, attributes, cookies, companions and upgrades. /dungeons admin boost clear keeps those too.
A broken [booster] line stores nothing, with one warning per distinct line. Broken means an unknown or inactive type, a refused bonus, or a bad time or amount.
A milestone reward
rewards:
- "[booster] money 1 30m"
- "[booster] luck 0.5 1h"Who else gives boosters
Each of these pushes memory boosters that show in /boosts under their own name:
| Source | Booster | Page |
|---|---|---|
| Perks | Each perk bonus is an additive booster (perk-<target>). | Perks |
| Auras | An additive booster per aura type (aura-<type>). | Auras |
| Totems | One additive booster per equipped totem (totem-<slot>). | Totems |
| Sword Attributes | One additive booster per target of the level (attribute-<target>). | Sword Attributes |
| Crystals | One MULTIPLICATIVE booster per target, of 1 + the sum of the crystals (crystals-<target>). | Crystals |
| Armors | The set bonuses, additive (armor-<target>). | Armors |
| Companions | One additive booster of the currency the equipped companions boost. | Companions |
| Cookies | The boosters of an active cookie, additive. | Cookies |
| Leveling upgrades | A permanent additive booster per booster upgrade (upgrade-<track>:<upgrade>). | Leveling Upgrades |
| Momentum enchants | Boosters that follow the momentum value while you keep fighting. | Momentum |
add-booster enchant action | Any booster an enchant gives. | Player Effects |
| Other plugins | Through the developer API. | Developer API |
Commands
| Command | Permission | Description |
|---|---|---|
/boosts | none | Opens the boosters menu. |
/boosterbackpack (alias /boosterbp) | none | Opens your booster backpack. |
/dungeons admin boost give <player> <target> <+bonus|xfactor> [time] [id] [name...] | sndungeons.admin.boost.give | Gives a player a booster. |
/dungeons admin boost take <player> <id> | sndungeons.admin.boost.take | Removes one boost of a player. |
/dungeons admin boost clear <player> [target] | sndungeons.admin.boost.clear | Removes the boosts of a player. |
/dungeons admin boost list <player> | sndungeons.admin.boost.list | The boosts of a player with their time left. |
/dungeons admin boost item <player> <type> <bonus> <time> [amount] | sndungeons.admin.boost.item | Gives an online player booster items (what does not fit goes to their backpack). |
/dungeons admin boost backpack <player> <type> <bonus> <time> [amount] | sndungeons.admin.boost.backpack | Stores boosters in the booster backpack of a player, online or not. |
/dungeons admin boost event start <type> <bonus> <time> | sndungeons.admin.boost.event.start | Starts a global event for everyone online. |
/dungeons admin boost event stop | sndungeons.admin.boost.event.stop | Ends the running global event. |
/dungeons admin boost event next | sndungeons.admin.boost.event.next | Shows the running global event or the next one rolled. |
/dungeons admin boost global give <player> <type|all> <bonus> <time> [amount] | sndungeons.admin.boost.global.give | Gives an online player global booster items. |
/dungeons admin boost global info | sndungeons.admin.boost.global.info | Shows the running global booster. |
/dungeons admin boost global stop | sndungeons.admin.boost.global.stop | Ends the running global booster. |
Full list: Commands and Permissions.
Placeholders
<target> is damage, swings, enchants, enchant:<id>, luck or a currency id. Full list: Placeholders.
| Placeholder | Description |
|---|---|
%sndungeons_boost_<target>_total% | The total boost (base times multi) |
%sndungeons_boost_<target>_base% | 1 plus the additive bonuses |
%sndungeons_boost_<target>_multi% | The multiplicative factor (1 without any) |
%sndungeons_boost_<target>_active% | true while any booster boosts the target |
%sndungeons_boost_<target>_list% | One line per booster, oldest first |
%sndungeons_boost_backpack_<type>_active% | true while a backpack booster of it runs |
%sndungeons_boost_event_active% | true while a global event runs |
%sndungeons_boost_event_next% | Time until the next rolled event starts |
Tips
- Prefer additive boosters for everyday sources. Keep multiplicative ones rare: they scale everything.
- Give admin boosters an id (
event), so giving it again replaces it instead of stacking. - Test the math with
/dungeons admin boost give <you> damage 1 5m, then read/boosts. /dungeons admin inspect player <player>shows the computed totals of a player.
Default boosters.yml
# ============================================================
# SnDungeons - boosters
# Managed by SnLib: new keys are merged on boot while update-configs is
# true in config.yml; your values and comments are kept. Do NOT add a
# config-version key. targets.currencies and items.per-target are yours:
# the entries you delete there stay deleted.
# ============================================================
#
# A booster gives a player a BONUS on one TARGET, for good or for a time.
# Every booster has an id (unique per player: a booster given with the id
# of another replaces it), a name (what /boosts shows: "Admin" for the ones
# of /dungeons admin boost, the name another plugin gives through the API)
# and a bonus. Everything starts at x1 and the bonuses ADD up: a booster of
# +1 makes x2, an Admin +1 and an Event +2 together make x4.
# Boosted: the damage of each swing of the sword on the zone mobs, the
# swings per second (still at most combat.max-swings-per-second of
# modules/sword/config.yml; a boosted rate below 0.05 per second is 0),
# what a player earns of a currency by playing (the rewards of a zone mob
# kill, after the rarity reward-bonus, and the give-currency action of the
# sword enchants), the proc chance of the sword enchants (at most 100%) and
# the player's Luck (luck.yml).
# Never boosted: /money give, pay and set, the rewards and resets of the
# leveling tracks, the vanilla damage of the sword and the fixed damage of
# an enchant.
# A target switched off is x1 (the boosters given for it are kept).
# /dungeons reload applies a change of this file.
targets:
# The damage of each swing of the sword on a zone mob (base-damage x the
# tier's damage-multiplier x this total).
damage:
enabled: true
display-name: '&cDamage'
# The swings per second of the sword on the zone mobs.
swings:
enabled: true
display-name: '&eSwings'
# The proc chance of every sword enchant (its chance x this total, at
# most 100%). While it is on, a booster can also target ONE enchant:
# enchant:<enchant id> (both add up for that enchant).
enchants:
enabled: true
display-name: '&dEnchant chance'
# The player's Luck (luck.yml): Luck points = round((total - 1) x 100),
# so a booster of +0.5 gives 50 Luck. Multiplicative luck boosters SUM their
# factors and multiply the base (+0.5 and x2 together give 200 Luck).
# Never in an automatic global event or an 'all' global item unless listed
# in events.eligible-targets.
luck:
enabled: true
display-name: '&a☘ Luck'
# One entry per currency id of currencies/ whose gains are boosted; a
# currency that is not here is never boosted, and an id that names no
# loaded currency is ignored with a console warning. display-name
# (optional) is how the target is shown; the currency's own when missing.
# sn:extensible
currencies:
money:
enabled: true
souls:
enabled: true
experience:
enabled: false
# A single-enchant target (enchant:<id>) shows as its enchant id. To name
# one, add a section enchant-names here, by enchant id:
# enchant-names:
# greed: '&6Greed chance'
# Most decimals of the multipliers the booster texts show (x1.5, x2),
# from 0 to 6. Trailing zeros are dropped; the style, the separators and
# the rounding come from currencies.number-format of config.yml.
multiplier-decimals: 2
# The boosters an admin gives: /dungeons admin boost give <player> <target>
# <amount> [time] [id] [name]. The amount 10 (or +10) is a BONUS added to
# x1: give damage 10 makes x11, two boosters of 10 make x21. The amount x2
# is a multiplicative FACTOR: the target's total is multiplied by x2.
admin-boosts:
# The name of a booster given without one.
name: '&dAdmin'
# The smallest amount one admin booster may add or multiply by (above 0,
# at most max-multiplier); it bounds both the +<n> and the x<n> forms.
min-multiplier: 0.01
# The largest amount one admin booster may add or multiply by (above 0).
max-multiplier: 100
# One line per active ADDITIVE booster of a target in the boosts menu
# (%sndungeons_boost_<target>_list% and _base_list%): {name}, {multiplier}
# (its bonus to the base), {time} (time left, or the permanent word) and {id}.
menu-line: ' &8- {name}&7: &f+{multiplier} &7{time}'
# That list while the target has no active booster.
menu-empty: '&7No active boost.'
# One line per active MULTIPLICATIVE booster (%sndungeons_boost_<target>_list%
# and _multi_list%): the same tokens, {multiplier} is its factor. The total of a
# target is base x multi: the base is 1 + the bonuses of its additive boosters,
# the multi the sum of the factors of its multiplicative ones (1 without any).
menu-line-multi: ' &8- {name}&7: &fx{multiplier} &7{time}'
# _base_list% while the target has no additive booster.
menu-empty-base: '&7No base boost.'
# _multi_list% while the target has no multiplicative booster.
menu-empty-multi: '&7No multiplier.'
# Booster items: /dungeons admin boost item gives them, a player stores a
# whole stack in their booster backpack with a right click. An item of 2x is a
# BONUS of +1 once started (alone it makes the total x2; it adds up with the
# other bonuses). Items of the same type, multiplier and time stack.
# The number typed in item, backpack, event start, global give and in a
# [booster] reward line is a BONUS added to x1 (since 0.46.1): a booster item
# of 2 is a BONUS of +2 = x3, within admin-boosts min to max; x<N> is the
# exact multiplier (x2 = x2). Items already made keep their multiplier.
items:
# The look of every booster item. {type} is the display-name of its type,
# {multi} its effective multiplier (an item of bonus 2 shows 3) and {time}
# its time.
defaults:
material: POTION
name: '&a{type} Booster &7({multi}x)'
lore:
- '&7Multiplier: &a{multi}x'
- '&7Time: &a{time}'
- ''
- '&8Right click to store it'
# true = the enchantment glint.
glow: true
# 0 = none.
custom-model-data: 0
# The look of one type, by type (damage, swings, enchants, luck or a currency id):
# only the keys written here; the rest comes from defaults.
# sn:extensible
per-target:
souls:
material: MAGMA_CREAM
# Ticks between two right clicks of a booster item (20 = 1 second).
cooldown-ticks: 10
# The worlds a booster item can be stored in; [] = every world.
worlds: []
# The booster backpack (/boosterbackpack): the boosters a player stored, one
# entry per type and multiplier (their times add up). One booster per type
# runs at a time: Start takes the entry of the highest multiplier of that
# type, and when it runs out the next one starts by itself. End puts its time
# left back. A backpack booster only counts down while its owner is online
# (a server crash cannot pause it: that time is lost).
backpack:
# The time a left click on a stored entry takes out as an item (a right
# click takes the whole entry). A time like 30m, 1h or 1d.
withdraw-chunk: 1h
# The name of a backpack booster in /boosts.
booster-name: '&aBackpack'
# Global events: a booster for EVERYONE online (and whoever joins while it
# runs), one at a time. An automatic event rolls a type, a bonus and a
# time from the ranges below; when it ends, the next one is rolled (end + a
# wait from interval) and kept, so a restart keeps it too. Global boosts run
# on real time (also while nobody is online). Like a booster item, an event
# of 2x is a BONUS of +1 that adds up with the player's other bonuses.
# /dungeons admin boost event start|stop|next.
events:
# false = no automatic event (an admin can still start one).
enabled: true
# The types an automatic event rolls from (damage, swings, enchants, luck
# or a currency id); [] = every enabled type except luck (luck joins an
# automatic event, and the expansion of an 'all' global item, only when
# listed here).
eligible-targets: []
# The bonus an event rolls, ADDED to x1: 0.5 to 2.0 = x1.5 to x3. (Since
# 0.46.1; an old events.multiplier left in this file is ignored.)
bonus:
min: 0.5
max: 2.0
# Times like 30s, 5m, 1h.
duration:
min: 5m
max: 15m
# The wait from the end of one event to the start of the next.
interval:
min: 45m
max: 75m
# The name of the event booster in /boosts.
name: '&6Global Event'
# Sent to everyone when an event starts and ends. {type}, {multi},
# {time} (its whole time). [] = nothing.
broadcast-start:
- ''
- '&6&lGLOBAL EVENT &7A &e{multi}x {type} &7event started for &e{time}&7!'
- ''
broadcast-end:
- '&6&lGLOBAL EVENT &7The &e{multi}x {type} &7event has ended.'
# The boss bar of a running event (a player can hide it in /settings).
# {type}, {multi}, {time} (time left). color: PINK, BLUE, RED, GREEN,
# YELLOW, PURPLE, WHITE. style: SOLID, SEGMENTED_6, SEGMENTED_10,
# SEGMENTED_12, SEGMENTED_20.
bossbar:
enabled: true
title: '&e{multi}x {type} Event: &f{time}'
color: YELLOW
style: SOLID
# The global booster item (/dungeons admin boost global give): a right click
# starts its booster for EVERYONE online, one at a time on the whole server
# (while one runs, another is refused and stays in the hand). Its type can be
# all (every enabled type). items.worlds applies to it too.
global-item:
material: EXPERIENCE_BOTTLE
# {type}, {multi} (the effective multiplier: bonus 2 shows 3) and {time}.
name: '&6Global {type} Booster &7({multi}x)'
lore:
- '&7Multiplier: &6{multi}x'
- '&7Time: &6{time}'
- '&7Boosts &6everyone &7online'
- ''
- '&8Right click to activate it'
glow: true
custom-model-data: 0
# Ticks between two right clicks of a global booster item.
cooldown-ticks: 10
# The name of its booster in /boosts; {player} activated it.
booster-name: '&6Global Booster of {player}'
# How the type all is shown.
all-name: '&dAll'
# Sent to everyone when one starts and ends: {player}, {type}, {multi},
# {time} (its whole time). [] = nothing.
broadcast:
- ''
- '&6&lGLOBAL BOOSTER &e{player} &7activated a &e{multi}x {type} &7booster for &e{time}&7!'
- ''
broadcast-end:
- '&6&lGLOBAL BOOSTER &7The &e{multi}x {type} &7booster of &e{player} &7has ended.'
# The title and the sound everyone gets when one starts ('' = none). The
# title follows the booster bars setting of /settings, the sound the
# sounds setting.
title: '&6&lGLOBAL BOOSTER'
subtitle: '&e{player} &7- &e{multi}x {type}'
sound: ENTITY_PLAYER_LEVELUP
# Its boss bar: the same keys as events.bossbar, {player} too.
bossbar:
enabled: true
title: '&6{player}''s {multi}x {type} Booster: &f{time}'
color: PURPLE
style: SOLID
# /boosts: the boosts menu, or (menu: '') every active target of the player
# with its total and the boosters that make it. command: '' = no /boosts at
# all; permission: '' = everyone.
commands:
main:
command: boosts
aliases: []
permission: ''
# The menu /boosts opens (a file of the guis/ folder, without .yml;
# PlaceholderAPI needed). '' = no menu: /boosts lists the boosts in chat.
menu: boosts
# /boosterbackpack: the booster backpack menu. command: '' = no
# /boosterbackpack at all; permission: '' = everyone (the backpack buttons
# check it too).
backpack:
command: boosterbackpack
aliases:
- boosterbp
permission: ''
# The menu /boosterbackpack opens (a file of the guis/ folder, without
# .yml; PlaceholderAPI needed).
menu: booster-backpack