zRivals Duels logozRivals Duels

Season rewards

Reward sets with items, commands and real money records, who gets which set, and how players claim them.

Top players get something for their season. You build reward sets once, map them to positions and ranks, and at every season end the plugin hands out claimable rewards on its own. Players open a menu and claim them, and nothing can be claimed twice.

How a final position and rank are matched to reward sets, split into item, command and real money parts, and moved from CLAIMABLE to CLAIMED or from CONTACT_STAFF to PAID.

Reward sets

A set can hold item rewards, command rewards and a real money reward at the same time. Each piece is tracked on its own.

sets:
  season-top1:
    # Name shown in the rewards menu
    display: "<gold>Season Champion"
    # Item shown for this set in the rewards menu
    icon: NETHER_STAR
    # Console commands run for the player when they claim, %player% is the player name
    commands:
      - "eco give %player% 500000"
      - "solyscoins give %player% 1000"
    # How each command shows in the rewards menu, same order as the commands
    command-lines:
      - "<green>$500,000"
      - "<yellow>1000 SolysCoins"
    real-money:
      # Turns the real money reward on for this set
      enabled: false
      # Value shown to players and staff, the plugin never sends money
      display: "€50"
KeyWhat it does
displaySet name in the rewards menu, MiniMessage format
iconItem used for the set's command rewards in the menu
commandsConsole commands run when the player claims. %player% is the player name
command-linesHow each command shows in the menu, in the same order. A missing line shows the command itself
real-money.enabledAdd a real money record to this set
real-money.displayThe value shown to the player and staff, like €50
ItemsSaved in game with /duel reward item add, stored in data/reward-items.yml

The shipped file has sets for #1, #2, #3, #4 to 5, #6 to 10, Master and Diamond, each giving money with eco give. Change them to suit your server.

Who gets which set

positions:
  # Exact position or a range, a player gets the first entry that matches
  "1": [season-top1]
  "2": [season-top2]
  "3": [season-top3]
  "4-5": [season-top5]
  "6-10": [season-top10]

ranks:
  # Sets given to everyone who ends the season in this rank
  master: [season-master]
  diamond: [season-diamond]

# Give rank rewards on top of position rewards
stack-rank-rewards: true

# Sets for one season only, keyed by season number, these replace the normal positions for that season
seasons: {}
  • Only players on the final leaderboard get rewards, so they need at least leaderboard.min-ranked-games ranked games that season.
  • Positions: an exact position like "1" or a range like "4-5". The first entry that matches is used. An entry can list several sets.
  • Ranks: the rank the player finished the season in. With stack-rank-rewards: true, rank sets are given on top of position sets. With false, rank sets are only given to players who matched no position.
  • One off seasons: a block under seasons replaces the normal positions for that season number only. Ranks still apply.
seasons:
  "8":
    positions:
      "1": [season-top1, paypal-50]
      "2-3": [season-top2]

A set name that does not exist is skipped with a console warning.

Managing sets and items in game

All need zrivalsduels.admin.reward.

CommandWhat it does
/duel reward set create <set>Add a new empty set to rewards.yml, with comments. Set ids use letters, numbers, - and _
/duel reward set delete <set>Remove a set from rewards.yml and delete its saved items
/duel reward set listList every set with its item count, command count and real money value
/duel reward item add <set>Save the item in your main hand into the set, exactly as it is
/duel reward item list <set>Open a preview menu of the set's items with their index numbers
/duel reward item remove <set> <index>Remove one item by its index
/duel reward item clear <set>Remove every item from the set. Asks you to confirm within 30 seconds

The set must exist in rewards.yml before you can add items to it. After set create, add commands and real money in the file and run /duel admin reload.

Saved items keep everything: amount, name, lore, enchantments, custom model data and items from other plugins. They are kept in data/reward-items.yml, a file only the plugin writes, so your comments in rewards.yml are never touched.

Grants and statuses

At season end, the plugin creates one reward part per player for every piece of every set they earned: one per item, one per command, and one for real money. The parts are copied at that moment, so editing a set later does not change rewards already handed out.

StatusMeaning
CLAIMABLEAn item or command waiting to be claimed
CLAIMEDClaimed
CONTACT_STAFFA real money reward waiting for staff
PAIDA real money reward staff have marked as sent

The status text players see is in the language file under reward.status.

Claiming

/duel rewards

Opens a paged menu of every reward part, newest season first, with the season, final position, set and status on each item.

  • Click a claimable part to claim it.
  • Claim all claims everything that fits.
  • An item that does not fit stays CLAIMABLE with a "make space" message. Rewards are never dropped on the ground.
  • Claims are safe against double clicks and two sessions at once. The database is updated first, and the item or command is given only if that update really claimed it.
rewards:
  # Give season rewards that fit straight away to online players when a season ends
  auto-give-on-season-end: false
  # Tell players about unclaimed rewards when they join
  join-notice: true
  # Milliseconds a player must wait between reward clicks
  click-cooldown-ms: 400
KeyWhat it doesDefault
auto-give-on-season-endOnline players get everything that fits straight away at season end. The rest stays claimablefalse
join-noticeTell players on join how many rewards they have not claimed, with a clickable buttontrue
click-cooldown-msIgnores clicks that come faster than this400

Real money rewards

Off by default. The plugin never sends money, it only records who won what and shows it to players and staff.

When a real money part is granted:

  • The record stores the player, season, final position, final MMR, the display value, the status, when it was created, when it was paid and who marked it paid.
  • The winner gets the reward.winner message: "Congratulations! You finished #1 in Ranked Season 8 and won a €50 PayPal reward. Please contact the staff to claim your prize." If they are offline, they get it when they next join.
  • A line is added to logs/real-money.log with the time. Another line is added when it is marked paid.
CommandWhat it does
/duel reward pending [season] [all]List pending real money rewards by season, for example #1 Luxioz - €50 - PENDING. Add all to include paid ones
/duel reward markpaid <player> [season]Mark a player's real money reward as paid. With no season and more than one pending reward, the plugin lists them and asks you to pick one

Both need zrivalsduels.admin.realmoney, which is separate from the other admin permissions so you can give it to one trusted person. Marking the same reward paid a second time says "already paid" and changes nothing.

On this page