Get Nexal Leaderboards on the Nexal Studios store
Add Your Own Period
The default periods cover today, this week, this month and the last 24 hours, 7 and 30 days. This page adds two more: a yearly board that pays out on New Year's, and a Last 14 Days board. How periods work: Periods.
A yearly period
/lb admin→ Periods → Add Period.- Type
yearlyin chat. It is created as the last 7 days, and its screen opens. - Click Kind: it becomes a calendar period, every week.
- Click Starts Again until it says Every year.
- Click Display Name and type
This Year.
It now starts again on January 1st at midnight, in the plugin's time zone. Because the plugin keeps 400 days of history by default, it already shows this whole year (as far back as the plugin was tracking).
A Last 14 Days period
- Add Period, type
14d. - It is already rolling. Click Length until it says 14 days (left click adds a day, shift click adds an hour).
- Display Name:
Last 14 Days.
The same in config.yml
Both are saved under periods: in config.yml, and you can write them there instead:
periods:
# ... the periods already there ...
yearly:
type: calendar
unit: year
name: "This Year"
14d:
type: rolling
days: 14
name: "Last 14 Days"
| Key | Values |
|---|---|
type | calendar or rolling |
unit (calendar) | day, week, month or year |
week-start (calendar week) | monday (default) to sunday |
days or hours (rolling) | How far back it reaches |
name | What players see |
The key (yearly, 14d) must be lowercase letters and digits.
Use it
- Placeholders:
%nexalleaderboards_vault_eco_balance_yearly_1% - Chat:
/lb top vault_eco_balance yearly 10 - Holograms and signs: their Period button now includes it.
- The menu: the clock button cycles through it.
- Rewards:
yearlyis a calendar period, so it appears under Rewards for every leaderboard. A big New Year's prize: see Reward ideas.
A "season"
A season of exactly three months, or from one date to another, is not a period kind. Two ways to get close:
- Use This Month or This Year and call it Season in its Display Name.
- Use a rolling period such as Last 90 Days for a board that always shows the last season.
Check it
/lb top vault_eco_balance yearly shows the ranking. If it says Unknown period, the key is
different from what you typed: the message lists the periods there are.