Get Nexal Leaderboards on the Nexal Studios store
Run a Weekly Competition
This sets up a weekly money competition: every Monday at midnight, the three players who earned the most in the week get a reward, offline players included, and the winners are announced in chat. The same steps work for any leaderboard and for daily, monthly or yearly competitions.
You need a leaderboard that is already tracked (here vault_eco_balance) and a command that
gives the reward. The examples use EssentialsX's eco give; any console command works. Everything
about rewards is on the Rewards page, and commands to copy on
Reward ideas.
1. Check the period
/lb admin → Periods. The weekly period is there by default: a calendar period that starts
again every Monday. To start the week on another day, open it and change Week Starts On.
Then click Time Zone and type your players' zone, such as Europe/Athens. The week ends at
midnight in that zone.
Rewards are only paid for calendar periods (day, week, month, year). Rolling periods such as the last 7 days never end, so they are not offered.
2. Add the rewards
/lb admin→ Leaderboards →vault_eco_balance→ Rewards →weekly.- Click Add Ranks and type
1in chat. - Type the command for rank 1, without the
/:eco give %player% 10000. - Back on the screen, click Add Ranks again, type
2-3, theneco give %player% 5000.
To give a rank more than one command, left click it and type another one. Right click removes its last command, shift right click removes the whole rank.
In a command you can use:
| Placeholder | Becomes |
|---|---|
%player% | The winner's name |
%uuid% | Their UUID |
%rank% | Their rank in the week |
%value% | What they gained, in the leaderboard's number format |
%period% | The period's name, "This Week" |
%placeholder% | The leaderboard's placeholder |
%name% | The leaderboard's display name |
Everything is saved to config.yml:
rewards:
vault_eco_balance:
weekly:
"1":
- "eco give %player% 10000"
"2-3":
- "eco give %player% 5000"
You can write this section by hand instead; it applies when you save the file.
3. Turn on the announcement
/lb admin → Configuration → Announce Winners. It is on by default. The text is
reward-broadcast-header and reward-broadcast-entry in messages.yml.
4. Show the race
Players compete harder when they see the standings:
- A hologram of the week:
/lb admin→ Holograms → Create Hologram, then set its Period to This Week. - The weekly leader on your scoreboard:
%nexalleaderboards_vault_eco_balance_weekly_1%and%nexalleaderboards_vault_eco_balance_weekly_1_formatted%. - Each player's own place:
%nexalleaderboards_vault_eco_balance_weekly_rank%.
How the payout works
- When the week ends, the plugin works out the final ranking of the week that ended from the score history, so it is the same whether the check runs at midnight or a minute later. It follows the leaderboard's ranking order and leaves out excluded players.
- The commands run from the console. The console logs
Paid the This Week rewards of vault_eco_balance to 3 player(s). - An offline winner gets the reward the next time they join, with a message.
- Every payout is recorded, so a restart never pays a week twice. A week that ended while the server was down is paid when it starts again (only the last one, if several ended).
- A reward you add during a week is first paid at the end of that week. Weeks that ended before you added it are never paid.
- If ranges overlap (
1and1-3), rank 1 gets both.
When a reward does not arrive
| Problem | Fix |
|---|---|
| Nothing happened at the end of the week | It was added during the week that just ended? Then that week is paid; one that ended before is not. Check the console for the Paid the ... rewards line |
| The console shows an error for the command | The command is wrong or its plugin is missing. Run it yourself in the console, with a real name instead of %player% |
| A winner says they got nothing | They were offline: it is waiting for their next join |
| The wrong player won | Check the time zone, and that staff accounts are excluded (see the Admin Manual) |
| The period is not in the Rewards screen | It is a rolling period. Use a calendar one |