Skip to Content
MineDuels
Configuration

nametags.yml

Prefixes and suffixes above player heads.

Path: plugins/MineDuels/nametags.yml
Reload: yes

What it supports

  • mode: vanilla on Paper (scoreboard teams)
  • mode: hologram with 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-colors and match.color: side
  • Hologram tuning: offset, scale, see-through, sneak-opacity, billboard, line-width, view-range, show-own
  • other-scoreboards: true when 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

modePlatformNeeds
vanillaPaper onlyNothing extra. Uses scoreboard teams. May conflict with TAB or other team-based nametag plugins
hologramPaper or Foliapacketevents 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.

KeyDefault (jar)Range (clamped on load)Purpose
update-ticks401 to 1200How often each player's tag text is recomputed on the display loop
placeholder-cache-seconds150 to 300Reuse PlaceholderAPI (and similar) results per player and template. 0 = lookup every refresh
hologram.reconcile-ticks40020 to 12000Hologram 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:

  1. Raise update-ticks before disabling tags.
  2. Raise placeholder-cache-seconds when rank prefixes change slowly.
  3. 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
KeyNotes
offsetBlocks above the head for the bottom line
scale1.0 is vanilla-like size
see-throughText visible through blocks (vanilla-like), except while sneaking uses opacity
sneak-opacity26 (faint) to 255 (solid) while sneaking
show-ownWhether the player sees their own hologram lines
billboardTypically 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: true

May conflict with TAB/LP nametag plugins. Prefer hologram + packetevents on mixed networks.

Dependencies: Documentation home. Behaviour: Nametags UI.

On this page