zRivals Duels logozRivals Duels

Configuration

A walk through config.yml section by section, plus the sounds and where the other files fit in.

config.yml holds the main settings. Every key has a one line comment in the file itself, and this page groups them by what they change. Most sections have their own page with the full detail, linked below.

The sections of config.yml mapped to the feature each one controls, with the other plugin files listed underneath.

Apply changes with /duel admin reload. The one exception is storage, which needs a full restart.

The file starts with config-version: 7. Leave it alone, it tells the plugin which settings to add when you update.

Language

# Language file to use from the lang folder, without the .yml ending
language: en_US

See Messages and Language.

Debug

# Write extra duel lines to the console, used when a fight has to be traced
debug: false

With debug: true the console gets a line for each step of a duel: the arena and the two names, how many countdown steps the fight waits for and each one as it is shown, the fight start, the end with its reason, and every time a player is put back on his spawn. Two more lines appear only when another plugin is in the way:

  • a teleport made by zRivals Duels was cancelled by another plugin
  • a hit between the two fighters was cancelled by another plugin

Those two are the ones to look for when players cannot move or cannot damage each other. Turn it off again once you are done, it writes a lot.

storage

Where data is saved, SQLITE or MYSQL. See Storage.

requests

Request expiry, cooldown and the title shown to the challenged player. See Duel requests.

KeyDefault
requests.expire-seconds60
requests.cooldown-seconds10
requests.title.enabledtrue
requests.title.fade-in, stay, fade-out10, 60, 10 ticks

setup

The shared setup menu timer and what closing it does. See Setup menu.

KeyDefault
setup.timeout-seconds120
setup.close-actionREOPEN (or CANCEL)

wager

Proposal answer time and the custom amount prompt. See Wagers and currencies.

KeyDefault
wager.proposal-seconds10
wager.custom-amount-inputSIGN (or CHAT), see Custom amounts
wager.custom-amount-seconds30
wager.cancel-wordcancel

countdown and duel

Countdown steps, game mode, time limit, winner delay, boundaries, drops, pearls, death messages and win and loss commands. See Duels and protection.

KeyDefault
countdown.step-seconds1
countdown.fade-in, stay, fade-out0, 25, 5 ticks
countdown.steps3, 2, 1, FIGHT!
duel.game-modeSURVIVAL
duel.max-duration-seconds0 (off)
duel.winner-delay-seconds3
duel.boundary-actionFORFEIT (or PUSH_BACK)
duel.boundary-check-heightfalse (only the sides of the boundaries count)
duel.return-toEXIT (or PREVIOUS_LOCATION), see Where players go afterwards
duel.block-item-dropstrue
duel.allow-ender-pearlstrue
duel.allow-chorus-fruittrue
duel.death-messageREPLACE (or KEEP, HIDE)
duel.win-commands, duel.loss-commandsempty
duel.broadcast-ranked-resultsfalse

fight-here

Duels where the two players stand, without an arena. See Fight here.

KeyWhat it doesDefault
fight-here.enabledShow Fight here in the location menu of the setup menutrue
fight-here.max-distanceMost blocks the two players can be apart15
fight-here.borderBlocks the fight area reaches past the two players on every side. Leaving it follows duel.boundary-action12
fight-here.allow-in-no-pvp-regionsAllow Fight here inside a WorldGuard region with pvp on denyfalse
fight-here.disabled-worldsWorlds where Fight here cannot be usedempty

own-gear

Duels where both players fight with their own items. See Gear.

own-gear:
  enabled: true
  loser-items: DROP
  permission-required: false
  heal-before-fight: true
  clear-effects: true
  allow-block-place: false
  allow-block-break: false
KeyWhat it doesDefault
own-gear.enabledShow the Gear button in the setup menutrue
own-gear.loser-itemsDROP gives the loser's inventory to the winner, KEEP lets both players keep their itemsDROP
own-gear.permission-requiredPlayers need zrivalsduels.kit.own-gear to pick Own gearfalse
own-gear.heal-before-fightFill health and hunger for both players before the countdowntrue
own-gear.clear-effectsRemove potion effects from both players before the countdowntrue
own-gear.allow-block-placeBlock placing inside the arena region during own gear duelsfalse
own-gear.allow-block-breakBlock breaking inside the arena region during own gear duelsfalse

Change loser-items and run /duel admin reload. Duels already running keep the value they started with.

queue

The matchmaking queue.

queue:
  # Let players find an opponent with /duel queue ranked and /duel queue unranked
  enabled: true
  # Allow ranked in the setup menu of a /duel <player> challenge, when false ranked duels only come from the ranked queue
  ranked-challenges: false
  # Show the search status in the action bar while a player waits in a queue
  action-bar: true
  ranked:
    # Largest MMR difference allowed between two players when they join the ranked queue
    start-range: 100
    # MMR added to the allowed difference each time the wait below passes
    widen-by: 50
    # Seconds of waiting before the allowed difference grows
    widen-every-seconds: 10
    # Largest MMR difference the search can grow to, 0 means no limit
    max-range: 600
KeyWhat it doesDefault
queue.enabledTurn both queues on or offtrue
queue.ranked-challengesAllow Ranked in the setup menu of a /duel <player> challengefalse
queue.action-barShow the search status in the action bar while waitingtrue
queue.ranked.start-rangeMMR gap allowed when a player joins the ranked queue100
queue.ranked.widen-byMMR added to the allowed gap each step50
queue.ranked.widen-every-secondsSeconds between steps10
queue.ranked.max-rangeLargest gap the search grows to, 0 for no limit600

spectate

Watching running duels. See Spectating.

KeyWhat it doesDefault
spectate.enabledLet players watch running duels with /duel spectatetrue
spectate.notify-playersTell both fighters when someone starts watchingtrue

integrations

integrations:
  worldguard:
    # Let the two fighters hit each other inside their arena when the region has PvP turned off, nobody else is let through
    allow-pvp-during-duels: true
  superiorskyblock:
    # Let the two fighters hit each other on a SuperiorSkyblock2 island that blocks PvP, visitors or coop damage, nobody else is let through
    allow-pvp-during-duels: true

Each part is only used when that plugin is installed. See the WorldGuard PvP bypass and SuperiorSkyblock2.

KeyWhat it doesDefault
integrations.worldguard.allow-pvp-during-duelsLet the two fighters damage each other inside a region with the pvp flag on denytrue
integrations.superiorskyblock.allow-pvp-during-duelsLet the two fighters damage each other on an island where SuperiorSkyblock2 would block ittrue

command-blocker

Commands blocked or allowed during a duel. See the command blocker.

KeyDefault
command-blocker.modeBLACKLIST (or WHITELIST)
command-blocker.commands34 common commands
command-blocker.allowed-duel-subcommandsforfeit, help

mmr, anti-abuse and leaderboard

Rating maths, farming checks and the leaderboard. See Ranked and MMR.

KeyDefault
mmr.starting1000
mmr.k-factor32
mmr.placement-games10
mmr.placement-k-factor48
mmr.min-change, mmr.max-change1, 60
mmr.floor0
mmr.divisor400
anti-abuse.block-same-iptrue
anti-abuse.same-opponent-limit3
anti-abuse.same-opponent-window-hours24
anti-abuse.repeat-reduction-enabledfalse
anti-abuse.repeat-multipliers[1.0, 0.75, 0.5]
leaderboard.refresh-seconds60
leaderboard.min-ranked-games1
leaderboard.max-cached500
leaderboard.page-size10
leaderboard.use-menufalse

stats, history and help

KeyWhat it doesDefault
stats.use-menu/duel stats opens a menu. false sends a chat summarytrue
history.page-sizeMatches per page in /duel admin history8
help.page-sizeCommands per page in /duel help and /duel admin help8

placeholders

What placeholders return while loading or when a spot is empty, and number formats. See Placeholders.

KeyWhat it doesDefault
placeholders.loadingReturned while an offline player's data loads...
placeholders.empty-nameReturned for an empty name, rank or best rank-
placeholders.empty-numberReturned for an empty number0
placeholders.winrate-formatWinrate number format, 0.0 gives 57.10.0
placeholders.time-left-formatSeason time left, tokens %days%, %hours%, %minutes%%days%d %hours%h %minutes%m
placeholders.offline-cache-secondsHow long an offline player's data stays cached120

rewards

Auto giving at season end, the join notice and the click cooldown. See Season rewards.

KeyDefault
rewards.auto-give-on-season-endfalse
rewards.join-noticetrue
rewards.click-cooldown-ms400

sounds

Every sound the plugin plays. Each has a Minecraft sound name, a volume and a pitch. Set name to "" to turn a sound off.

sounds:
  request-received:
    # Sound name, leave empty to turn it off
    name: "entity.experience_orb.pickup"
    # Sound volume
    volume: 1.0
    # Sound pitch
    pitch: 1.0
Sound idWhen it playsDefault sound
request-receivedA player receives a duel requestentity.experience_orb.pickup
request-sentA player sends a duel requestui.button.click
request-deniedA request is refused or declined, a setup is cancelled, a wager proposal is refusedentity.villager.no
menu-clickAny menu button is clickedui.button.click
setup-changedMode, kit or wager changes in the setup menublock.note_block.hat
confirmA setup confirm click, and confirm steps for dangerous commandsblock.note_block.chime
wager-proposedA player receives a wager proposalblock.note_block.bell
victoryThe winner at the end of a duelui.toast.challenge_complete
defeatThe loser at the end of a duelentity.wither.death
drawBoth players when a duel ends with no winnerblock.note_block.bass
queue-joinedA player joins a queueblock.note_block.chime
queue-foundBoth players when the queue finds a matchentity.player.levelup
reward-claimedA season reward is claimedentity.player.levelup
errorNo permission, a blocked command, a failed start check and similarentity.villager.no
season-endEvery online player when a season endsui.toast.challenge_complete

Countdown sounds are set per step under countdown.steps.

The other files

FileWhat it controlsPage
commands.ymlCommand name, aliases and subcommand labelsCommands file
currencies.ymlWager currenciesWagers and currencies
ranks.ymlRanks and MMR thresholdsRanked and MMR
seasons.ymlSeason length and MMR resetSeasons
rewards.ymlReward sets and who gets themSeason rewards
menus/Every menuMenus
lang/Every messageMessages and Language
kits/One file per kitKits
arenas/One file per arenaArenas

Leave the version key at the top of each file alone. When an update adds new settings, they are added to your files on the next start and your own values stay as they are.

On this page