nametags.yml
Prefixes and suffixes above player heads.
Path: plugins/MineDuels/nametags.yml
Reload: yes
What it supports
mode: vanillaon Paper (scoreboard teams)mode: hologramwith packetevents (default in jar)- Per-state layouts:
lobby,party,queue,editor,match,spectating - Groups:
permission,prefix,suffix,states,worlds - Match/lobby colour cycling via
side-colorsandmatch.color: side - Hologram tuning:
offset,scale,see-through,sneak-opacity,billboard,line-width,view-range,show-own other-scoreboards: truewhen a third-party plugin owns the main scoreboard
What it does not do
- Custom tags on Folia without
hologram+ packetevents - Load
%mineduels_...%without PlaceholderAPI (built-in%elo%,%rank%,%health%, etc. still work) - Use zero CPU with tags enabled (timers and event-driven updates always run)
Behaviour overview: Nametags UI. Performance tuning: Performance and Spark.
Modes
mode | Platform | Needs |
|---|---|---|
vanilla | Paper only | Nothing extra. Uses scoreboard teams. May conflict with TAB or other team-based nametag plugins |
hologram | Paper or Folia | packetevents installed and enabled |
If mode: hologram is set but packetevents is missing, console warns and players keep vanilla name tags.
Timing and performance keys
These apply to both modes unless noted.
| Key | Default (jar) | Range (clamped on load) | Purpose |
|---|---|---|---|
update-ticks | 40 | 1 to 1200 | How often each player's tag text is recomputed on the display loop |
placeholder-cache-seconds | 15 | 0 to 300 | Reuse PlaceholderAPI (and similar) results per player and template. 0 = lookup every refresh |
hologram.reconcile-ticks | 400 | 20 to 12000 | Hologram only. Full pass: viewers, vanish, tracking. Between reconciles, health/sneak/teleport/damage still update immediately |
Hologram mode sends packets, not armor stands. Spark may still show nametag code on update-ticks because:
- Lines with placeholders not driven by events (rank, prefix,
%elo%when not event-bound) refresh on the timer. - Reconcile ticks walk all viewer/target pairs.
Tuning for busy hubs:
- Raise
update-ticksbefore disabling tags. - Raise
placeholder-cache-secondswhen rank prefixes change slowly. - Avoid long PAPI chains in every line (LuckPerms meta + multiple expansions per player).
With database.yml → performance.async-displays: true, text resolution for displays can run off the main thread; packet send for visible changes still runs on the server thread.
Hologram appearance (hologram:)
hologram:
offset: 0.3
scale: 1.0
background: transparent
see-through: true
shadow: true
line-width: 200
view-range: 1.0
sneak-opacity: 128
show-own: true
billboard: vertical
reconcile-ticks: 400| Key | Notes |
|---|---|
offset | Blocks above the head for the bottom line |
scale | 1.0 is vanilla-like size |
see-through | Text visible through blocks (vanilla-like), except while sneaking uses opacity |
sneak-opacity | 26 (faint) to 255 (solid) while sneaking |
show-own | Whether the player sees their own hologram lines |
billboard | Typically vertical so text stays upright |
States and groups
State blocks (lobby, match, …)
Each state can set prefix, suffix, color, and lines (multi-line hologram). Example from the default jar:
match:
prefix: "<dark_gray>[<white>⚔</white>]</dark_gray> "
suffix: ""
color: side
lines:
- "%name%"
- "<red>%health%❤"color: side cycles team colours from side-colors for match teams.
Built-in keys include %name%, %player%, %elo%, %rank%, %health%, %party_size%, and match-specific keys. See Placeholders.
Groups
groups:
admin:
permission: mineduels.admin
prefix: "<red>[Admin] "
suffix: ""
states: [] # empty = all states
worlds: [] # empty = all worlds
default:
permission: ""
prefix: ""
suffix: ""First matching group by permission wins. Use states / worlds to limit a group.
Example (hologram, tuned hub)
enabled: true
mode: hologram
update-ticks: 60
placeholder-cache-seconds: 30
other-scoreboards: true
hologram:
offset: 0.3
scale: 1.0
see-through: true
reconcile-ticks: 400
groups:
default:
prefix: ""
suffix: " <yellow>%elo%"
states: []other-scoreboards: true helps when TAB or another plugin owns the sidebar scoreboard but you still want hologram tags.
Example (Paper only, no packetevents)
mode: vanilla
enabled: trueMay conflict with TAB/LP nametag plugins. Prefer hologram + packetevents on mixed networks.
Dependencies: Documentation home. Behaviour: Nametags UI.