Zone HUD
On this page(8)
While a player stands in your zones, the HUD shows them their grind at a glance. A fixed action bar gives their income per minute and progress bars, and the green experience bar shows a leveling. Each player sees only their own HUD.
| Files | hud: of modules/zones/config.yml |
| Settings | core.action-bars (every action bar, the HUD bar included), zones.hud-xp-bar (the experience bar) |
| Applied by | /dungeons reload |
Where it shows
hud.show-in decides where a player sees the HUD:
| Value | Where |
|---|---|
zones | Inside the columns of the mob area of a zone, widened by mobs.leave-area-distance, in its world |
worlds | Anywhere in a world of isolation.worlds |
both | Either one (shipped) |
When you leave the place, the fixed bar goes within a second, and your real experience bar comes back.
The action bar
hud.actionbar.format is sent again every second, color codes allowed. It takes these tokens:
| Token | Value |
|---|---|
{per-minute:<currency>} | What you earned of that currency in the last 60 seconds, in currencies.number-format |
{balance:<currency>} | Your balance of that currency, in currencies.number-format |
{level:<leveling>} | Your level of that leveling |
{bar:<id>} | A bar of hud.bars |
%...% | Any PlaceholderAPI placeholder (with PlaceholderAPI installed) |
{per-minute:...} counts zone mob kills and enchant gains, boosters included. It never counts a give, a pay, a set or a leveling reward. It goes down as older gains leave the minute.
Other action bars. Something else may show you an action bar: an enchant's actionbar step, a reward, another plugin. The fixed bar then leaves it room. It waits pause-ticks ticks (60 = 3 seconds) before it shows again. Another plugin's bar is noticed only with the packet layer on (nms.enabled: true).
The shipped format:
format: '&a+{per-minute:money}/m &8| &b+{per-minute:souls}/m &8| {bar:rebirth}'Bars
Each entry of hud.bars is a progress bar that follows one leveling. You show it with {bar:<id>}.
- Its progress is the balance of the leveling's cost currency over the cost of its next level.
- A leveling paid with the level of another (
cost.type: level, like the shippedrebirth) uses that level over the level asked for. - It draws
lengthcells,filledup to the progress andemptyafter, insideformat. - At the max level of the leveling it shows
max-format.
With the shipped rebirth bar, a player 62% of the way reads ▮▮▮▮▮▮▯▯▯▯ (62%) to Rebirth 53. See Levelings for the cost of a level.
| Key of a bar | Shipped | What it does |
|---|---|---|
leveling | rebirth | The leveling it follows, an id of levelings/. A bar without it is skipped, with a warning. |
length | 10 | The number of cells. |
filled | '&a▮' | The text of a filled cell. |
empty | '&7▯' | The text of an empty cell. |
format | '{bar} &f({percent}%) &7to Rebirth {next}' | The text: {bar} is the cells, {percent} 0 to 100, {next} the next level. |
max-format | '&d&lMAX REBIRTH' | Shown at the max level. |
Any other missing key uses the shipped value. bars is marked # sn:extensible: the bars are yours. Add, change or delete them freely, and a bar you delete stays deleted.
A second bar that follows the level leveling:
bars:
rebirth:
# ...the shipped bar...
level:
leveling: level
length: 10
filled: '&b▮'
empty: '&7▯'
format: '{bar} &f({percent}%) &7to Level {next}'
max-format: '&b&lMAX LEVEL'Then use it in the format: format: '&a+{per-minute:money}/m &8| {bar:level}'.
The experience bar
The green bar and number show the leveling of hud.xp-bar.leveling (level as shipped). The number is your level of it, and the bar your progress to its next level, like a bar of hud.bars.
Your real experience never changes. It shows again once you leave the place or the server, or the HUD or the module goes off or reloads. After a respawn, a world change or a change of your vanilla experience, the server shows your real one for a moment. The HUD shows its own again right after.
Configuration
| Key | Default | What it does |
|---|---|---|
hud.show-in | both | zones, worlds or both. See Where it shows. |
hud.actionbar.enabled | true | false sends no fixed action bar. |
hud.actionbar.format | see above | The fixed action bar. |
hud.actionbar.pause-ticks | 60 | Ticks another action bar keeps its place before the fixed one returns, 0 to 1200. |
hud.xp-bar.enabled | true | false leaves the experience bar alone. |
hud.xp-bar.leveling | level | The leveling the experience bar shows. |
hud.bars.<id>.* | rebirth | The bars of {bar:<id>}. See Bars. |
Unknown ids. An id that does not exist (a currency, a leveling or a bar) shows nothing. It logs one warning per placeholder until the next /dungeons reload. A player's values show nothing until their data loads after they join.
No hud: block. A modules/zones/config.yml without the hud: block has no HUD. That only happens to an old file kept with update-configs: false.
Reloads. A /dungeons reload that changes hud: clears everyone's HUD. It shows again within a second with the new settings.
Player settings
| Setting | Off means |
|---|---|
core.action-bars | No action bar at all from SnDungeons, the HUD bar included |
zones.hud-xp-bar | No HUD experience bar: the player keeps their real one |
See Player Settings.
Tips
{per-minute:...}is a quick way to compare stages: it shows the income of the last minute, boosters included.- The shipped
hud.xp-bar.levelingislevel, the leveling theexperienceof the zone mobs raises. - Testing a format? Edit it and run
/dungeons reload: the HUD redraws within a second.
Default hud: block of modules/zones/config.yml
# The zone HUD, for each player alone and only where show-in says: a fixed
# action bar and an experience bar that shows a leveling. The player's real
# experience never changes: it shows again as soon as they leave that place
# (or the HUD is turned off). Without this block (an older file kept with
# update-configs: false) there is no HUD.
hud:
# zones = inside the columns of the mob-area of a zone, widened by
# mobs.leave-area-distance; worlds = anywhere in the worlds of
# isolation.worlds; both = either one.
show-in: both
# The fixed action bar, sent again every second.
actionbar:
enabled: true
# {per-minute:<currency>} = what the player earned of that currency in
# the last 60 seconds (mob kills and enchant gains, boosters included),
# {balance:<currency>} = their balance, both in the
# currencies.number-format of config.yml; {level:<leveling>} = their
# level; {bar:<id>} = a bar of bars: below. PlaceholderAPI placeholders
# (%...%) work too. An unknown id shows nothing, with one warning per
# reload.
format: '&a+{per-minute:money}/m &8| &b+{per-minute:souls}/m &8| {bar:rebirth}'
# When something else shows the player an action bar (an enchant, a
# reward, another plugin), the fixed one leaves it this many ticks (20 =
# 1 second) before it shows again, from 0 to 1200. Another plugin's is
# only noticed with nms.enabled: true in config.yml.
pause-ticks: 60
# The green experience bar shows the progress to the next level of a
# leveling (an id of the levelings folder), and the green number its level.
xp-bar:
enabled: true
leveling: level
# The bars of {bar:<id>}. leveling: the leveling it follows; its progress is
# the balance of its cost currency over the cost of the next level or, for a
# leveling paid with the level of another (cost type: level), that level
# over the level asked for. length: the cells; filled and empty: the text of
# a filled and of an empty cell; format takes {bar}, {percent} (0 to 100)
# and {next} (the next level); max-format shows at the max level. A missing
# key uses the shipped value; a bar you delete stays deleted.
# sn:extensible
bars:
rebirth:
leveling: rebirth
length: 10
filled: '&a▮'
empty: '&7▯'
format: '{bar} &f({percent}%) &7to Rebirth {next}'
max-format: '&d&lMAX REBIRTH'