Skip to Content
MineDuels

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

modePlatformNeeds
vanillaPaper onlyNothing extra (scoreboard teams). May conflict with TAB/plugins that own teams
hologramPaper or Foliapacketevents 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.

TriggerTypical update
Damage, healing, max healthHealth line (e.g. %health%)
Sneak / unsneakOpacity and billboarding
Teleport, world changePosition 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:

  1. Check percentage for that tick, not just the name in the tree.
  2. Inspect tag lines for heavy PAPI (rank, clan, conditional expansions).
  3. Increase update-ticks and placeholder-cache-seconds before disabling tags.
  4. Keep database.yml → performance.async-displays: true for 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.

Dependency summary: Documentation home. FAQ: Scoreboard, tab, and nametags. Config: nametags.yml.

On this page