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.
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_USDebug
# Write extra duel lines to the console, used when a fight has to be traced
debug: falseWith 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.
| Key | Default |
|---|---|
requests.expire-seconds | 60 |
requests.cooldown-seconds | 10 |
requests.title.enabled | true |
requests.title.fade-in, stay, fade-out | 10, 60, 10 ticks |
setup
The shared setup menu timer and what closing it does. See Setup menu.
| Key | Default |
|---|---|
setup.timeout-seconds | 120 |
setup.close-action | REOPEN (or CANCEL) |
wager
Proposal answer time and the custom amount prompt. See Wagers and currencies.
| Key | Default |
|---|---|
wager.proposal-seconds | 10 |
wager.custom-amount-input | SIGN (or CHAT), see Custom amounts |
wager.custom-amount-seconds | 30 |
wager.cancel-word | cancel |
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.
| Key | Default |
|---|---|
countdown.step-seconds | 1 |
countdown.fade-in, stay, fade-out | 0, 25, 5 ticks |
countdown.steps | 3, 2, 1, FIGHT! |
duel.game-mode | SURVIVAL |
duel.max-duration-seconds | 0 (off) |
duel.winner-delay-seconds | 3 |
duel.boundary-action | FORFEIT (or PUSH_BACK) |
duel.boundary-check-height | false (only the sides of the boundaries count) |
duel.return-to | EXIT (or PREVIOUS_LOCATION), see Where players go afterwards |
duel.block-item-drops | true |
duel.allow-ender-pearls | true |
duel.allow-chorus-fruit | true |
duel.death-message | REPLACE (or KEEP, HIDE) |
duel.win-commands, duel.loss-commands | empty |
duel.broadcast-ranked-results | false |
fight-here
Duels where the two players stand, without an arena. See Fight here.
| Key | What it does | Default |
|---|---|---|
fight-here.enabled | Show Fight here in the location menu of the setup menu | true |
fight-here.max-distance | Most blocks the two players can be apart | 15 |
fight-here.border | Blocks the fight area reaches past the two players on every side. Leaving it follows duel.boundary-action | 12 |
fight-here.allow-in-no-pvp-regions | Allow Fight here inside a WorldGuard region with pvp on deny | false |
fight-here.disabled-worlds | Worlds where Fight here cannot be used | empty |
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| Key | What it does | Default |
|---|---|---|
own-gear.enabled | Show the Gear button in the setup menu | true |
own-gear.loser-items | DROP gives the loser's inventory to the winner, KEEP lets both players keep their items | DROP |
own-gear.permission-required | Players need zrivalsduels.kit.own-gear to pick Own gear | false |
own-gear.heal-before-fight | Fill health and hunger for both players before the countdown | true |
own-gear.clear-effects | Remove potion effects from both players before the countdown | true |
own-gear.allow-block-place | Block placing inside the arena region during own gear duels | false |
own-gear.allow-block-break | Block breaking inside the arena region during own gear duels | false |
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| Key | What it does | Default |
|---|---|---|
queue.enabled | Turn both queues on or off | true |
queue.ranked-challenges | Allow Ranked in the setup menu of a /duel <player> challenge | false |
queue.action-bar | Show the search status in the action bar while waiting | true |
queue.ranked.start-range | MMR gap allowed when a player joins the ranked queue | 100 |
queue.ranked.widen-by | MMR added to the allowed gap each step | 50 |
queue.ranked.widen-every-seconds | Seconds between steps | 10 |
queue.ranked.max-range | Largest gap the search grows to, 0 for no limit | 600 |
spectate
Watching running duels. See Spectating.
| Key | What it does | Default |
|---|---|---|
spectate.enabled | Let players watch running duels with /duel spectate | true |
spectate.notify-players | Tell both fighters when someone starts watching | true |
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: trueEach part is only used when that plugin is installed. See the WorldGuard PvP bypass and SuperiorSkyblock2.
| Key | What it does | Default |
|---|---|---|
integrations.worldguard.allow-pvp-during-duels | Let the two fighters damage each other inside a region with the pvp flag on deny | true |
integrations.superiorskyblock.allow-pvp-during-duels | Let the two fighters damage each other on an island where SuperiorSkyblock2 would block it | true |
command-blocker
Commands blocked or allowed during a duel. See the command blocker.
| Key | Default |
|---|---|
command-blocker.mode | BLACKLIST (or WHITELIST) |
command-blocker.commands | 34 common commands |
command-blocker.allowed-duel-subcommands | forfeit, help |
mmr, anti-abuse and leaderboard
Rating maths, farming checks and the leaderboard. See Ranked and MMR.
| Key | Default |
|---|---|
mmr.starting | 1000 |
mmr.k-factor | 32 |
mmr.placement-games | 10 |
mmr.placement-k-factor | 48 |
mmr.min-change, mmr.max-change | 1, 60 |
mmr.floor | 0 |
mmr.divisor | 400 |
anti-abuse.block-same-ip | true |
anti-abuse.same-opponent-limit | 3 |
anti-abuse.same-opponent-window-hours | 24 |
anti-abuse.repeat-reduction-enabled | false |
anti-abuse.repeat-multipliers | [1.0, 0.75, 0.5] |
leaderboard.refresh-seconds | 60 |
leaderboard.min-ranked-games | 1 |
leaderboard.max-cached | 500 |
leaderboard.page-size | 10 |
leaderboard.use-menu | false |
stats, history and help
| Key | What it does | Default |
|---|---|---|
stats.use-menu | /duel stats opens a menu. false sends a chat summary | true |
history.page-size | Matches per page in /duel admin history | 8 |
help.page-size | Commands per page in /duel help and /duel admin help | 8 |
placeholders
What placeholders return while loading or when a spot is empty, and number formats. See Placeholders.
| Key | What it does | Default |
|---|---|---|
placeholders.loading | Returned while an offline player's data loads | ... |
placeholders.empty-name | Returned for an empty name, rank or best rank | - |
placeholders.empty-number | Returned for an empty number | 0 |
placeholders.winrate-format | Winrate number format, 0.0 gives 57.1 | 0.0 |
placeholders.time-left-format | Season time left, tokens %days%, %hours%, %minutes% | %days%d %hours%h %minutes%m |
placeholders.offline-cache-seconds | How long an offline player's data stays cached | 120 |
rewards
Auto giving at season end, the join notice and the click cooldown. See Season rewards.
| Key | Default |
|---|---|
rewards.auto-give-on-season-end | false |
rewards.join-notice | true |
rewards.click-cooldown-ms | 400 |
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 id | When it plays | Default sound |
|---|---|---|
request-received | A player receives a duel request | entity.experience_orb.pickup |
request-sent | A player sends a duel request | ui.button.click |
request-denied | A request is refused or declined, a setup is cancelled, a wager proposal is refused | entity.villager.no |
menu-click | Any menu button is clicked | ui.button.click |
setup-changed | Mode, kit or wager changes in the setup menu | block.note_block.hat |
confirm | A setup confirm click, and confirm steps for dangerous commands | block.note_block.chime |
wager-proposed | A player receives a wager proposal | block.note_block.bell |
victory | The winner at the end of a duel | ui.toast.challenge_complete |
defeat | The loser at the end of a duel | entity.wither.death |
draw | Both players when a duel ends with no winner | block.note_block.bass |
queue-joined | A player joins a queue | block.note_block.chime |
queue-found | Both players when the queue finds a match | entity.player.levelup |
reward-claimed | A season reward is claimed | entity.player.levelup |
error | No permission, a blocked command, a failed start check and similar | entity.villager.no |
season-end | Every online player when a season ends | ui.toast.challenge_complete |
Countdown sounds are set per step under countdown.steps.
The other files
| File | What it controls | Page |
|---|---|---|
commands.yml | Command name, aliases and subcommand labels | Commands file |
currencies.yml | Wager currencies | Wagers and currencies |
ranks.yml | Ranks and MMR thresholds | Ranked and MMR |
seasons.yml | Season length and MMR reset | Seasons |
rewards.yml | Reward sets and who gets them | Season rewards |
menus/ | Every menu | Menus |
lang/ | Every message | Messages and Language |
kits/ | One file per kit | Kits |
arenas/ | One file per arena | Arenas |
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.