Get Nexal Leaderboards on the Nexal Studios store
Build from the Console
Everything in /lb admin can also be done with commands, and every command that places something
takes a place instead of your position. So a console, a script, a scheduled task or an AI
assistant can set up the leaderboards of a whole server without anyone logging in.
In the console, leave out the /.
Places
Wherever a command would use where you stand, add at <world> <x> <y> <z>, and for signs, heads
and NPCs optionally the direction it faces:
at world 0.5 72 0.5
at world 10 70 5 180
The direction (yaw) is 0 for south, 90 for west, 180 for north and 270 for east. From the console the place is required; in game it is optional.
A whole spawn display
lb admin track vault_eco_balance
lb admin hologram create spawn_money vault_eco_balance 10 weekly at world 0.5 73 0.5
lb admin display create npc top1 vault_eco_balance 1 weekly at world -2.5 70 3.5 180
lb admin display create npc top2 vault_eco_balance 2 weekly at world 0.5 70 3.5 180
lb admin display create npc top3 vault_eco_balance 3 weekly at world 3.5 70 3.5 180
lb admin display create sign top1_sign vault_eco_balance 1 weekly at world -3 69 3 180
lb admin display create sign top2_sign vault_eco_balance 2 weekly at world 0 69 3 180
lb admin display create sign top3_sign vault_eco_balance 3 weekly at world 3 69 3 180
Each command answers with what it did, or why it could not: That block is taken, Not a place, Leaderboard NPCs need FancyNpcs or Citizens.
Changing things
lb admin hologram set spawn_money lines 5
lb admin hologram set spawn_money period monthly
lb admin hologram set spawn_money period all
lb admin hologram move spawn_money world 0.5 74 0.5
lb admin display set top1 rank 4
lb admin display set top1 placeholder statistic_player_kills
lb admin display move top1 world 5.5 70 3.5 90
lb admin setinterval vault_eco_balance 60
period all goes back to all time.
Looking around
lb list
lb info vault_eco_balance
lb top vault_eco_balance weekly 10
lb admin hologram list
lb admin display list
display list prints every display with its kind, leaderboard, rank, period and place, so a script
can check what is there before it builds.
Removing things
lb admin hologram delete spawn_money
lb admin display delete top1
lb admin remove vault_eco_balance
remove stops tracking a leaderboard and deletes its scores, history, holograms, signs, heads and
NPCs.
Settings
Settings are in config.yml, which applies as soon as it is saved: a script can write periods,
number formats, rewards and the rest there (see the config.yml page), then
run lb admin reload to be sure.
The full list of commands: Commands.