Skip to main content

Holograms

A hologram is floating text with the top of a leaderboard: a title and one line per rank. Put one at spawn and players see the race every time they log in. Clicking it opens the full leaderboard.

You do not need a hologram plugin. The holograms are made of Minecraft's own text displays, so they are light, sharp, and work on a plain Spigot or Paper server.

Creating one​

  1. Stand where the hologram should be. It appears at your eye height, so the first line of text is level with your eyes.
  2. /lb admin → Holograms → Create Hologram.
  3. Pick the leaderboard. The hologram appears with the top 10, all time, and its screen opens.

It gets a name such as hologram1. From the console, or to choose the name, use the command:

/lb admin hologram create spawn_money vault_eco_balance 10 weekly
lb admin hologram create spawn_money vault_eco_balance 10 weekly at world 0.5 72 0.5

Changing it​

The hologram's screen (/lb admin → Holograms → click it):

ButtonWhat it does
LeaderboardShow another leaderboard
PeriodAll Time, or any period: left click for the next, right click for the previous
Ranks ShownHow many ranks, from 1 to 20: click for one more or less, shift click for five
TeleportGo to it
Move HereMove it to where you stand (at your eye height again)
DeleteShift right click to remove it

On the list itself, right click a hologram to move it to you and shift right click to delete it, without opening its screen. Every change shows at once.

What it shows and when it updates​

  • After every refresh of its leaderboard, the hologram redraws with the new ranking.
  • A period hologram shows that period's ranking and goes back to empty lines when the period starts again.
  • A rank nobody holds yet shows as #7 -.
  • Removing the leaderboard removes its holograms too.

Clicking it​

Players who click a hologram open the leaderboard menu on the same period, if they have nexalleaderboards.use (everyone does by default).

The text​

All holograms use the hologram section of messages.yml:

hologram:
header:
- "<gradient:#9B59B6:#A569BD><bold>TOP %lines%</bold></gradient>"
- "<gradient:#B983CE:#C99DDA>%placeholder%</gradient> <gray>(%period%)</gray>"
line: "<white>#%rank%</white> <gradient:#9B59B6:#A569BD>%player%</gradient> <gray>-</gray> <gradient:#B983CE:#C99DDA>%value%</gradient> %change%"
empty-line: "<gray>#%rank% -</gray>"
footer: []
PartPlaceholders
header, footer%lines% (ranks shown), %placeholder% (the leaderboard's display name, or its placeholder), %period% (its name)
line%rank%, %player%, %value% (in the leaderboard's number format), %change% (the arrow)
empty-line%rank%

Some ideas:

  • A footer that tells players what to do: footer: ["<gray>Click for the full leaderboard</gray>"].
  • Gold, silver and bronze lines are not possible per rank in the hologram text, but the menu has them.
  • Holograms update as soon as you save messages.yml.

Every hologram shares the same header. With several holograms, %placeholder% and %period% tell them apart.

Several holograms​

Make as many as you like, of the same leaderboard or different ones: an all time board and a weekly board side by side is a classic. A full spawn display with NPCs and signs: Build a leaderboard wall.