Nametags
Prefixes above heads; vanilla teams on Paper or holograms with packetevents.
Config file: plugins/MineDuels/nametags.yml. Reload with /md reload.
Full reference (every key, defaults, tuning): nametags.yml.
Modes
mode | Platform | Needs |
|---|---|---|
vanilla | Paper only | Nothing extra (scoreboard teams). May conflict with TAB/plugins that own teams |
hologram | Paper or Folia | packetevents installed and enabled |
The default shipped config uses mode: hologram. Without packetevents you get a console warning and vanilla name tags.
On Folia, custom tags require hologram + packetevents. The vanilla team path is not supported.
How hologram tags update
Hologram tags are packet-only: no scoreboard teams are created for them. Only deltas are sent when something visible changes.
| Trigger | Typical update |
|---|---|
| Damage, healing, max health | Health line (e.g. %health%) |
| Sneak / unsneak | Opacity and billboarding |
| Teleport, world change | Position and which viewers see the tag |
| Join / quit / vanish (reconcile) | Viewer list |
Timer (update-ticks) | Lines that depend on placeholders not tied to the events above |
Timer (reconcile-ticks) | Full consistency pass (default every 400 ticks) |
Placeholder values such as a rank prefix are cached per player for placeholder-cache-seconds (default 15, 0 looks them up every refresh). That keeps PlaceholderAPI and LuckPerms off the hot path between refreshes.
Install PlaceholderAPI only if you reference %mineduels_...% or other expansions in tag text. MineDuels-native keys (%elo%, %rank%, etc.) work without PAPI.
Multi-line tags
Each state (lobby, queue, match, …) can define lines: in YAML. Lines stack upward above the head (hologram.offset sets the bottom line). Match mode often uses two lines: name and health.
Performance
Nametag packets are rarely the main cause of second-long MSPT spikes. When Spark shows nametag classes:
- Check percentage for that tick, not just the name in the tree.
- Inspect tag lines for heavy PAPI (rank, clan, conditional expansions).
- Increase
update-ticksandplaceholder-cache-secondsbefore disabling tags. - Keep
database.yml→performance.async-displays: truefor display string work.
Step-by-step: Performance and Spark.
Placeholders
Tag prefix / suffix / lines use the same display keys as scoreboard and tab (%elo%, %rank%, %kit%, match keys, etc.). See Placeholders.
Related
Dependency summary: Documentation home. FAQ: Scoreboard, tab, and nametags. Config: nametags.yml.