Levelings
On this page(20)
A leveling track is a level that players raise by spending a currency, or by reaching a level of another track. Each file of the levelings/ folder is one track with its own command (/level, /rebirth). A track runs rewards on every level, so it drives the whole progression. Use it for the classic level, a rebirth that resets a run, or anything you invent.
| Files | levelings/ (one file per track), the levelings: block of config.yml |
| Player commands | /level (alias /lvl), /rebirth (one root per track) |
| Admin commands | /<track> give|take|set|reset, /dungeons admin levelings list |
| Switch | Always on (core). Delete a file and run /dungeons reload to remove a track |
How it works
- A track has a level. A new player starts at
starting-level. - The next level has a cost. It grows with every level, by a formula you choose.
- The player levels up. With
/level up(once),/level max(as many as they can pay), or by itself on an automatic track. - Rewards run. Every level reached runs its reward lines: messages, commands, currencies, resets.
- Unlocks are told. The player reads what the level unlocked, or how far the next unlock is.
The shipped tracks:
| Track | Paid with | Mode | What it does |
|---|---|---|---|
level | experience (a currency) | automatic | Levels up on its own as the zone mobs pay experience. Each level also raises the sword's swings per second. |
rebirth | the level of level | manual | Asks for level 50, then 75, 100... Its rewards reset the run. It sells upgrades. |
The levelings/ folder is created with its two examples only when it does not exist at startup. A deleted file never comes back. The levels players reached stay stored when you remove a track.
The track id is the file name (level.yml is level): lowercase letters, digits and -, at most 58 characters. A track whose cost.currency is not a loaded currency is skipped with a console warning.
The track file
The Default column shows the value of the shipped level.yml.
Root keys
| Key | Default | What it does |
|---|---|---|
display-name | '&aLevel' | The name shown in messages. Color codes allowed. |
starting-level | 1 | The level of a player who never leveled this track (0 or more). rebirth ships 0. |
max-level | 0 | The highest level. 0 means no limit. A value below starting-level is raised to it. |
automatic-leveling | true | true levels up on its own when the player holds enough. false levels up only with up and max. |
menu | '' | The menu the bare root opens: a file of guis/ without .yml. '' answers in chat. |
cost | What a level costs (below). | |
rewards | What each level gives (below). | |
unlocks | What the levels unlock, told in chat (below). {} tells nothing. | |
upgrades | enabled: false | Upgrades bought with points. See Leveling Upgrades. |
commands | The root and its subcommands (below). |
Automatic leveling. The check runs every time the player's balance of the cost currency goes up while they are online. A player who already holds enough without a new gain levels up at their next gain, or with up or max.
cost
| Key | Default | What it does |
|---|---|---|
cost.type | currency | currency pays with a balance. level pays with the level of another track. |
cost.currency | experience | The currency id that pays (type currency). |
cost.leveling | The track whose level pays (type level; rebirth ships level). | |
cost.starting-cost | 10 | The cost of the first level-up (more than 0). Accepts 1.5K or 2e40. |
cost.is-exponential | true | true multiplies the cost every level. false adds a fixed amount. |
cost.exponential-growth | 1.15 | The growth per level when exponential (1.0 or more; 1.0 = the same cost every level). |
cost.increase-cost-by | 0 | Added per level when not exponential (0 or more). |
cost.remove-currency | true | true spends the cost. false spends nothing: the balance is only a threshold. |
A key you leave out of a track file reads a default. These are starting-level 1, automatic-leveling true and cost.starting-cost 100. The others are cost.is-exponential false, cost.exponential-growth 1.15, cost.increase-cost-by 0 and cost.remove-currency true.
The formula. Going from level L to L + 1 costs:
| Mode | Cost |
|---|---|
| exponential | starting-cost * exponential-growth ^ (L - starting-level) |
| linear | starting-cost + increase-cost-by * (L - starting-level) |
So the first level-up always costs starting-cost.
Worked example (level). starting-cost: 10, exponential-growth: 1.15, starting-level: 1:
| Level-up | Cost |
|---|---|
| 1 to 2 | 10 |
| 2 to 3 | 11.5 |
| 5 to 6 | 17.49 |
| 10 to 11 | 35.18 |
Reaching level 10 from level 1 costs about 167.86 experience in total.
Threshold mode. With remove-currency: false nothing is spent. The player reaches every level whose cost their balance covers. A lower balance later never takes a level away.
Amounts keep 15 significant digits. A cost below the 15th digit of a far larger balance is not taken.
Cost of type level (rebirth)
With cost.type: level and cost.leveling: <track>, a track is paid with the player's level in another track.
- The next level asks for
starting-costas a level of that track. It grows with the same formulas and is rounded up to a whole level. - Nothing is spent. The rewards of the track usually reset that level instead.
remove-currencyandautomatic-levelingare always false here, with a console warning when the file says true.- A track whose
cost.levelingis missing, names itself or names a track that is not loaded is skipped with a warning.
The shipped rebirth asks level 50, 75, 100... (starting-cost: 50, linear, increase-cost-by: 25).
rewards
Reward lines run once for EACH level reached, in the same tick, only while the player is online.
| Key | When it runs |
|---|---|
rewards.for-each | On every level. |
rewards.specific.<n> | On level n only. |
rewards.interval.<n> | On every multiple of n (5, 10, 15...). |
levelings/level.yml
rewards:
for-each: []
specific:
10:
- "[console] give {player} diamond 1"
interval:
5:
- "[title] &aLevel {level}"Tokens. {player} (the name), {level} (the level reached) and {track} (the track id, not its display name). PlaceholderAPI placeholders of the player work when it is installed.
Lines. Every SnLib action works: [message], [console], [player], [title], [sound], [actionbar]... A [title] or [actionbar] shows nothing to a player who switched Titles or Action Bar Messages off in /settings.
SnDungeons adds these tags:
| Tag | What it does |
|---|---|
[give-currency] <currency> <amount> | Adds to a balance (500, 1.5K, {level}00). |
[set-currency] <currency> <amount> | Sets a balance. 0 sets exactly 0. |
[reset-currency] <currency> | A balance back to the currency's starting-value. |
[reset-leveling] <track> | That track back to its starting-level. Inside a level-up it runs right after it. |
[reset-zones] | The zone progress back to the first stage of the first zone, and the player taken there. Needs the zones module. |
[reset-tier] | The sword back to its lowest tier. Needs the sword module. |
[reset-enchants], [reset-enchant] <id> | Every sword enchant, or one, back to level 0. |
[reset-boosters] [target] | Every booster of the player, or those of one target. Never the backpack nor the module boosters. |
[reset-perk] | The sword perk taken away (perks module). |
[reset-upgrades] <track> [upgrade] | The leveling upgrades of a track, or one, back to 0. |
[booster] <type> <bonus> <time> [amount] | Stores boosters in the player's backpack. |
[give-pouch] <currency>:<pouch> [amount] | Gives currency pouches. |
Every reset is free and safe to run more than once. A tag of a module does nothing while that module is off. The tags work in any reward, not only here: see Menus and Action Tags.
A level-up of 500 levels runs for-each 500 times. Keep for-each light, or lower levelings.max-levels-per-operation.
Loops. A reward that pays the currency of the same track can level the player up again. That stops after levelings.max-automatic-per-tick (8) level-ups per tick, with one warning per track. A reward that runs the track's own up or max ([player] level up) is refused as busy.
The rebirth resets
The shipped rebirth rewards reset a run:
rewards:
for-each:
- "[reset-leveling] level"
- "[set-currency] money 0"
- "[set-currency] experience 0"
- "[reset-zones]"
- "[reset-tier]"
- "[title] &d&lREBIRTH &f{level}"The file also lists commented resets you can switch on: [reset-enchants], [reset-currency] souls, [reset-boosters], [reset-perk]...
A rebirth runs when nothing of the player is pending. Its rewards run in the same tick, one after the other. Once [reset-zones] ran, the mobs of the old stage can no longer be hit nor pay. Their enchant effects stop too, so nothing of the old stage lands after the resets.
unlocks
The root key unlocks: lists, by level, lines of text (color codes allowed). It is only text: what a level really gives comes from rewards:.
levelings/level.yml
unlocks:
3:
- "&bThe Fire enchant"
7:
- "&eThe Desert zone"
- "&dThe /fly command"After each real level-up (up, max, automatic, the auto-rebirth, a menu button), the player gets in chat:
| Level reached | What the player reads |
|---|---|
| 3 (a level with lines) | UNLOCKED at Level 3: and its lines |
| 2 | One more level of Level to unlock at 3: and the lines of level 3 |
| 4 to 6 | 3 more levels of Level to unlock at 7: at level 4 (fewer at 5 and 6) and the lines of level 7 |
| 8 and above | Nothing: no level above has lines |
give, set, take, reset and the API never send these lines. A level at or below starting-level, or above a max-level that is not 0, is ignored with a warning.
The messages are levelings.unlocks of lang/messages_en.yml. Players switch them off in /settings -> Chat -> Level Unlocks (core.level-unlocks).
The shipped rebirth.yml lists the Sword Attributes levels (the required: of modules/attributes/levels.yml). Keep both in step when you change one. See Sword Attributes.
The commands block
The same rules as a currency's commands: block (see Currencies).
| Subcommand | Default permission | Note |
|---|---|---|
main | none | The root (/level). Run bare by a player, it shows the level or opens the menu:. |
up | none | rebirth gives it the alias confirm. |
max | none | Off for rebirth (one rebirth at a time). |
give, take, set, reset | sndungeons.leveling.<sub> | Admin subcommands. |
top | none | On for everyone when the block is missing. |
upgrades | none | On for everyone when the block is missing. Listed only while the track has upgrades. |
There is no menu subcommand. A commands.menu block left in an old file is ignored.
The rebirth menu
/rebirth opens guis/rebirth.yml (named by menu: rebirth). Its layout:
#########
#I##P##C#
U###M###X| Cell | What it shows or does |
|---|---|
I | Your head, your rebirths and the cost of the next one. |
P | The progress bar to the next rebirth (%sndungeons_level_rebirth_bar%). |
C | Rebirth once ([leveling] up rebirth). Two items: a green one while %sndungeons_level_rebirth_ready% == true, a red one otherwise. |
M | Rebirth as many times as you can ([leveling] max rebirth). |
U | The rebirth upgrades ([leveling-upgrades] open rebirth). |
X | Close. |
The menu actions of every track:
| Action | Same as | Gates |
|---|---|---|
[leveling] up <track> | /<track> up | The root permission and the up block. |
[leveling] max <track> | /<track> max | The root permission and the max block. |
[leveling] open <track> | the bare root | The root permission. |
/rebirth max ships off, so the M button answers "You cannot do that here". Enable commands.max of rebirth.yml, or remove the button.
Auto Rebirth
Players can let the rebirth buy itself: the Automation tab of /settings has Auto Rebirth (core.auto-rebirth, off by default). It buys one level of the first track of auto.rebirth-tracks of config.yml (['rebirth']) that the player can pay. Each listed track must use cost.type: level.
Luck on levelings
Luck can change a level-up:
free-level-upwaives the most expensive level of a/<track> upormax. It never applies to an automatic level-up or a track that costs a level.double-level-upadds one extra level, never charged. A double rebirth runs the rebirth rewards twice.
Configuration (config.yml)
levelings
| Key | Default | What it does |
|---|---|---|
max-levels-per-operation | 10000 | Most levels one level-up may add at once: a max, an automatic level-up, a threshold track (1 to 10000). It also bounds the reward rounds of one tick. |
max-automatic-per-tick | 8 | Most automatic level-ups of one player in one track in one tick (1 to 100). Past it, a warning the first time; it goes on at the next gain. |
unlocks.max-lines | 10 | Most unlock lines one level-up sends (1 to 100). The rest are one "...and N more" line. |
unlocks.separator | '&7, ' | What joins the lines of a level in %sndungeons_level_<track>_next_unlock%. |
The progress bar of %sndungeons_level_<track>_bar% is styled by placeholders.bar of config.yml (see General Config).
Commands
The table uses /level as the example.
| Command | Permission | Description |
|---|---|---|
/level | none | Your level, the max level and the cost of the next level. Opens the track's menu when its menu: names one. |
/level up | none | Levels up once, when your balance covers it. On /rebirth its alias is confirm. |
/level max | none | Levels up as many times as your balance covers. Off for /rebirth. |
/level give <player> <levels> | sndungeons.leveling.give | Adds levels, online or offline, up to max-level. No rewards run. |
/level take <player> <levels> (alias remove) | sndungeons.leveling.take | Removes levels, down to starting-level. |
/level set <player> <level> | sndungeons.leveling.set | Sets the level, kept within the track's limits. No rewards run. |
/level reset <player> | sndungeons.leveling.reset | Sets the level back to starting-level. |
/level top [page] | none | The players with the highest level. |
/level upgrades | none | Opens the upgrades menu of the track. Shown only while the track has upgrades. |
/level help | none | Lists the subcommands you can use. |
/dungeons admin levelings list | sndungeons.admin.levelings.list | The loaded leveling tracks: command, cost currency, automatic or manual, max level. |
Full list: Commands.
Placeholders
Full list: Placeholders.
| Placeholder | Description |
|---|---|
%sndungeons_level_<track>% | Your level in the track |
%sndungeons_level_<track>_next_cost% | The cost of your next level (empty at the max) |
%sndungeons_level_<track>_progress% | Percent toward your next level |
%sndungeons_level_<track>_bar% | A progress bar, styled by placeholders.bar in config.yml |
%sndungeons_level_<track>_ready% | true when you can afford the next level |
%sndungeons_level_<track>_next_unlock% | The unlock lines of the next level that has some |
%sndungeons_level_<track>_next_unlock_missing% | How many levels you are missing to reach it |
Tips
- Set
messages.levelings.level-upto''if your rewards already announce each level. - An exponential growth of 1.15 doubles the cost about every 5 levels. Try 1.05 to 1.10 for long tracks.
- Test a track with
/level give <you> 9, then/level up:giveruns no rewards,updoes. /dungeons admin currencies log <player> level:levellists the level changes of a player.
Default levelings/level.yml
# ============================================================
# SnDungeons - leveling file (level)
# One file per leveling track; the track id is the file name
# (level.yml = level): lowercase letters, digits and '-', at most 58
# characters, extension .yml. Copy this file under a new name to add a
# track, delete it to remove one; /dungeons reload applies either (the
# levels players reached stay stored).
# SnDungeons never updates this file, so a key you delete reads its default.
# The example files are created only when the levelings folder does not
# exist at startup; a single deleted file never comes back.
# ============================================================
# Name shown in messages (color codes allowed).
display-name: '&aLevel'
# Level of a player who never leveled this track (0 or more).
starting-level: 1
# Highest level; 0 means no limit (a value below starting-level is raised to it).
max-level: 0
# true = the level goes up on its own as soon as the player holds enough of
# the cost currency (checked every time that balance goes up while they are
# online: every zone mob kill that pays experience). false = only
# /<command> up and max level up.
automatic-leveling: true
# What a level costs. The cost of going from level L to L+1:
# is-exponential: true -> starting-cost * exponential-growth ^ (L - starting-level)
# is-exponential: false -> starting-cost + increase-cost-by * (L - starting-level)
# so the first level-up always costs starting-cost.
cost:
# Currency id (a file of the currencies folder); the zone mobs pay experience
# (the rewards of the stages in the zone files). A track whose currency does
# not exist is skipped with a warning.
currency: experience
# Cost of the first level-up (more than 0). Amounts accept the suffixes of
# currencies.number-format in config.yml (1.5K) or an exponent (2e40).
starting-cost: 10
# true = each level costs exponential-growth times the previous one.
is-exponential: true
# Growth per level when is-exponential is true (1.0 or more; 1.0 = same cost
# for every level).
exponential-growth: 1.15
# Added to the cost per level when is-exponential is false (0 or more).
increase-cost-by: 0
# true = leveling up spends the cost. false = nothing is spent: the balance
# works as a threshold, and the player reaches every level whose cost their
# balance covers.
remove-currency: true
# Actions run once for EACH level reached (a level-up of 100 levels runs them
# 100 times), only while the player is online. Every
# SnLib action works ([message], [console], [player], [title], [sound],
# [actionbar]...), plus [give-currency] <currency> <amount> and
# [set-currency] <currency> <amount>. Placeholders: {player} (the player
# name), {level} (the level reached) and {track} (this track's id, not its
# display-name), and the PlaceholderAPI ones of the player when it is installed.
# The level of this track also raises the swings per second of the sword
# (combat.leveling and combat.swings-per-level of modules/sword/config.yml).
rewards:
# Run on every level (none as shipped: the level-up line of the language file
# already announces each one).
for-each: []
# Run on one exact level.
specific:
10:
- "[console] give {player} diamond 1"
# Run on every level that is a multiple of the number (5, 10, 15...).
interval:
5:
- "[title] &aLevel {level}"
# What the levels unlock, told to the player after each level-up (in the chat,
# while their core.level-unlocks of /settings is on): reaching a level listed
# here sends its lines ("UNLOCKED at Level 10: ..."), any other level-up sends
# the next level listed and how many levels are missing ("3 more levels of
# Level to unlock at 10: ..."). Only text: what a level really gives comes from
# rewards: above (or from what checks the level). Keys are levels above
# starting-level (and up to max-level when it is not 0); color codes allowed.
# The messages are levelings.unlocks of the language file, the line limit
# levelings.unlocks of config.yml. {} = tell nothing.
unlocks:
# The diamond of rewards.specific above.
10:
- "&bA diamond"
# One more level, with two lines (remove the # to use it):
# 25:
# - "&eThe Desert zone"
# - "&bThe Fire enchant"
# The menu that /level opens when run without a subcommand: a file of the
# guis/ folder, without .yml. '' (or no key) = no menu: /level then shows the
# level and the cost of the next one.
menu: ''
# Upgrades bought with points (like shop: true in a currency). On:
# /level upgrades opens guis/upgrades-level.yml, created once from the
# plugin's template when it does not exist (startup or /dungeons reload;
# delete it and reload to get it back). That file sets the upgrades, their
# prices, max levels and what each gives.
# Off for this track as shipped: set enabled to true to sell upgrades for
# /level too (its points can be any currency that is not this track's cost
# currency; a new currency file of its own keeps them apart from the rebirth
# points).
upgrades:
enabled: false
points:
# The currency that is this track's points (a file of the currencies
# folder; not this track's own cost currency).
currency: rebirth-points
# Points given for EACH level reached by a real level-up (up, max,
# automatic, auto-rebirth, the menu button); never by give, take, set or
# reset. 0 = only through actions ([give-currency] rebirth-points <n>).
per-level: 1
# The commands of this track. A permission of '' means no permission is
# needed. A subcommand with enable: false (or without its block) does not
# exist: it is not tab-completed, not listed in the help, and typing it
# answers "unknown subcommand".
commands:
# The root command: /level alone shows the sender's level and the cost
# of the next one. If another plugin already has this name or an alias,
# SnDungeons takes it (command priority) and that plugin keeps answering as
# /<plugin>:<name>. A server, vanilla or Brigadier command, or a root of
# another SnLib plugin with command priority, is never taken: then this one
# answers only as /sndungeons:<name>. To leave a name to another plugin,
# pick another one.
main:
# Command name.
command: level
# Other names of the command.
aliases: [lvl]
# Permission needed to use the command at all.
permission: ''
# /level up: levels up once, when the balance covers it. Every
# subcommand block below takes the same keys.
up:
# false = this subcommand does not exist.
enable: true
# Other names of the subcommand.
aliases: []
# Permission needed; without this key the shipped default applies.
permission: ''
# /level max: levels up as many times as the balance covers, at once.
max:
enable: true
permission: ''
# /level give <player> <levels>: adds levels (offline players too),
# up to max-level; no rewards.
give:
enable: true
permission: 'sndungeons.leveling.give'
# /level take <player> <levels>: removes levels, down to starting-level.
take:
enable: true
aliases: [remove]
permission: 'sndungeons.leveling.take'
# /level set <player> <level>: sets the level (kept between
# starting-level and max-level); no rewards.
set:
enable: true
permission: 'sndungeons.leveling.set'
# /level reset <player>: sets the level back to starting-level.
reset:
enable: true
permission: 'sndungeons.leveling.reset'
# /level top [page]: the players with the highest level (config.yml tops:). A
# file without this block has it on, for everyone.
top:
enable: true
permission: ''
# /level upgrades: opens the upgrades menu of this track (shown only while
# upgrades.enabled above is true; otherwise it answers that there are no
# upgrades). A file without this block has it on, for everyone.
upgrades:
enable: true
permission: ''Default levelings/rebirth.yml
# ============================================================
# SnDungeons - leveling file (rebirth)
# One file per leveling track; the track id is the file name
# (rebirth.yml = rebirth): lowercase letters, digits and '-', at most 58
# characters, extension .yml. Copy this file under a new name to add a
# track, delete it to remove one; /dungeons reload applies either (the
# levels players reached stay stored).
# SnDungeons never updates this file, so a key you delete reads its default.
# The example files are created only when the levelings folder does not
# exist at startup; a single deleted file never comes back.
# ============================================================
# Name shown in messages (color codes allowed).
display-name: '&dRebirth'
# Rebirths of a player who never did one (0 or more).
starting-level: 0
# Most rebirths; 0 means no limit.
max-level: 0
# A cost of type level never levels up on its own (no auto-rebirth), whatever
# this key says: /rebirth up does it.
automatic-leveling: false
# What a rebirth costs. With type level the player needs a level of another
# track (leveling below) of at least the cost, and that level is NOT spent
# (the rewards below reset it). The cost of going from rebirth R to R + 1:
# is-exponential: true -> starting-cost * exponential-growth ^ (R - starting-level)
# is-exponential: false -> starting-cost + increase-cost-by * (R - starting-level)
# so the first rebirth asks for starting-cost (a cost with decimals is rounded
# up to a whole level).
cost:
# currency (paid with a currency, as in level.yml; the default) or level.
type: level
# The leveling track (a file of this folder) whose level pays. A track that
# names a missing track, or itself, is skipped with a warning.
leveling: level
# Level asked for the first rebirth (more than 0).
starting-cost: 50
# true = each rebirth asks exponential-growth times the level of the one
# before.
is-exponential: false
# Growth per rebirth when is-exponential is true (1.0 or more).
exponential-growth: 1.15
# Added to the level asked per rebirth when is-exponential is false (0 or
# more).
increase-cost-by: 25
# Actions run once for EACH rebirth reached, only while the player is online, in
# order. Every tag of level.yml works, plus these reset tags (each one is free,
# logged and safe to run more than once):
# [reset-leveling] <track> that track back to its starting-level (inside these
# rewards it runs right after the rebirth)
# [reset-zones] the zone progress back to the first stage of the first
# zone, and the player taken to its spawn (zones module)
# [reset-tier] the sword back to its lowest tier (sword module)
# [reset-enchants] every sword enchant of the player back to level 0
# [reset-enchant] <id> one sword enchant back to level 0
# [reset-currency] <id> a balance back to the currency's starting-value
# ([set-currency] <id> 0 sets it to exactly 0)
# [reset-boosters] [target] every booster of the player, or those of one target
# (damage, swings, enchants, enchant:<id> or a currency);
# also the add-booster and momentum ones; never the
# backpack nor the module boosters (perks, auras,
# totems, armors, crystals, attributes)
# [reset-perk] the sword perk taken away (perks module); the pity,
# the perk tickets and the confirmations stay
# A tag of a module does nothing while that module is off. Once [reset-zones]
# ran, the mobs of the stage the player left can no longer be hit, nor pay, and
# their enchant effects stop, so nothing of the old stage lands after the resets.
# Placeholders: {player}, {level} (the rebirth reached) and {track} (this track's
# id). specific: and interval: work as in level.yml.
rewards:
for-each:
- "[reset-leveling] level"
- "[set-currency] money 0"
- "[set-currency] experience 0"
- "[reset-zones]"
- "[reset-tier]"
# Other resets a server may want (remove the # to use one):
# - "[reset-enchants]"
# - "[reset-enchant] critical"
# - "[reset-currency] souls"
# - "[reset-boosters]"
# - "[reset-boosters] damage"
# - "[reset-perk]"
- "[title] &d&lREBIRTH &f{level}"
# What the rebirths unlock, told after each rebirth (the same rules as unlocks:
# of level.yml). As shipped: the Sword Attributes levels of the attributes
# module (the required: of modules/attributes/levels.yml); keep both in step.
unlocks:
1:
- "&aSword Attributes &7level &f1 &8(/attributes)"
2:
- "&aSword Attributes &7level &f2"
3:
- "&aSword Attributes &7level &f3"
5:
- "&aSword Attributes &7level &f4"
10:
- "&aSword Attributes &7level &f5"
# The menu that /rebirth opens when run without a subcommand: a file of the
# guis/ folder, without .yml. '' (or no key) = no menu: /rebirth then shows the
# level and the cost of the next one.
menu: rebirth
# Upgrades bought with points (like shop: true in a currency). On:
# /rebirth upgrades opens guis/upgrades-rebirth.yml, created once from the
# plugin's template when it does not exist (startup or /dungeons reload;
# delete it and reload to get it back). That file sets the upgrades, their
# prices, max levels and what each gives.
upgrades:
enabled: true
points:
# The currency that is this track's points (a file of the currencies
# folder; not this track's own cost currency).
currency: rebirth-points
# Points given for EACH level reached by a real level-up (up, max,
# automatic, auto-rebirth, the menu button); never by give, take, set or
# reset. 0 = only through actions ([give-currency] rebirth-points <n>).
per-level: 1
# The commands of this track (the same rules as level.yml).
commands:
# The root command: /rebirth alone shows the sender's rebirths and the level
# the next one asks for, with how many levels they lack. (The command
# priority notes of level.yml apply.)
main:
command: rebirth
aliases: []
permission: ''
# /rebirth up (or /rebirth confirm): does the rebirth, when the level covers
# it; otherwise says how many levels are missing.
up:
enable: true
aliases: [confirm]
permission: ''
# /rebirth max: as many rebirths at once as the level covers (the rewards run
# for each one). Off as shipped: one rebirth at a time.
max:
enable: false
permission: ''
# /rebirth give <player> <rebirths>: adds rebirths (offline players too),
# up to max-level; no rewards.
give:
enable: true
permission: 'sndungeons.leveling.give'
# /rebirth take <player> <rebirths>: removes rebirths, down to starting-level.
take:
enable: true
aliases: [remove]
permission: 'sndungeons.leveling.take'
# /rebirth set <player> <rebirths>: sets the rebirths; no rewards.
set:
enable: true
permission: 'sndungeons.leveling.set'
# /rebirth reset <player>: sets the rebirths back to starting-level.
reset:
enable: true
permission: 'sndungeons.leveling.reset'
# /rebirth top [page]: the players with the highest rebirth (config.yml tops:). A
# file without this block has it on, for everyone.
top:
enable: true
permission: ''
# /rebirth upgrades: opens the upgrades menu of this track (shown only while
# upgrades.enabled above is true; otherwise it answers that there are no
# upgrades). A file without this block has it on, for everyone.
upgrades:
enable: true
permission: ''Default levelings: block of config.yml
# ------------------------------------------------------------
# Levelings. Each file of the levelings/ folder is one leveling track.
# Re-read on /dungeons reload.
# ------------------------------------------------------------
levelings:
# Most levels one level-up may add at once: /<track> max, an automatic
# level-up, or a track whose balance is only a threshold (1 to 10000). The
# rewards of a track run once per level reached, so this also bounds how
# many reward rounds one level-up runs in a single tick.
max-levels-per-operation: 10000
# Most automatic level-ups of one player in one track in one server tick
# (1 to 100). A reward that keeps paying for the next level stops there (a
# warning the first time for that track) and goes on at the next gain of that
# currency.
max-automatic-per-tick: 8
# The lines a level-up sends from the unlocks: of a leveling file (what the
# levels reached unlock, or the next level that unlocks something). The
# messages are levelings.unlocks of the language file; a player switches
# them off with core.level-unlocks of settings.yml.
unlocks:
# Most unlock lines one level-up sends (1 to 100); the rest are told as
# one "more" line (a /<track> max that crosses many levels).
max-lines: 10
# What joins the lines of a level in the placeholder
# %sndungeons_level_<track>_next_unlock%.
separator: '&7, '