Configuration Files
What every file in plugins/ShyamDuels/ does, and every section of config.yml in short. Each feature page has more detail.
The Files
| File | What it holds | Reload |
|---|---|---|
config.yml | Main settings (below). | /sd reload-config confirm |
database.yml | SQLite or MySQL, and thread settings. | Restart |
ranks.yml | Elo and ranks. See Elo & Ranks. | /sd reload-ranks |
tiers.yml | Tiers and tier tests. See Tiers. | /sd reload-tiers |
sounds.yml | Every sound. | /sd reload-sounds |
tournament.yml | Tournaments. See Tournaments. | /tournament reload |
advancement.yml | Advancements. See Advancements. | /sd reload-advancements |
arena-rules.yml | Rules per arena. See Arena Rules. | /arena rule reload |
kit-limits.yml | Item and enchant limits per kit. See Kit Limits. | /kit limit reload |
lang/messages.yml | All chat messages, titles and action bars. | /sd reload-messages |
menus/ | Chest menus. See Menus. | /sd reload-gui |
dialog-menus/ | Dialog menu texts. | /sd reload-gui |
items/ | Lobby, queue and party hotbar items, and the rematch item. | /sd reload-items |
tab/ | Tab list, nametags and scoreboards. | /sd reload-tab, /sd reload-scoreboard |
categories/ | Kit categories, one file each. See Kit Categories. | /kit category reload |
data/ | Databases, kit order, custom kits and gates. Do not edit while the server runs. | |
schematics/ | Saved arena builds. |
When you update the plugin, new settings are added to your files and your own values are kept. See Updating & Migration.
config.yml
Basics
config-version: 39 # do not change
License: "" # your licence key
debug: false # extra console lines, for example why the start elevator was skipped
server:
name: Practice Server
Modules
modules turns whole features on or off: queue, ffa, party, spectate, friends, duels, custom-kits, killstreaks, auto-gg, action-bar, tab-list, scoreboard, the practice tools (kit editor, golden head, totem practice and more), armor-trimmer, enchant-table and shield-customizer. Set friends: false if you use a proxy friends plugin.
World isolation
world-isolation:
enabled: false
additional-worlds: []
blocked-message: '<red>ShyamDuels is only available in practice worlds.</red>'
Keeps ShyamDuels to its own worlds on a server with other game modes. Restart after changing it. See World Isolation.
Arenas
arenas:
world: Arenas
build-height-limit-offset: 2
difficulty: HARD
cloning: 0
reset-clones-on-startup: true
reset-messages: {enabled: true, notify-players: true, notify-admins: true}
allow-infinite-height: false
instances: {...}
reset-queue: {max-concurrent: 3, ffa-one-at-a-time: true}
clear-entities-on-startup: true
sanitize-clone-worlds: true
gamerules: {...}
See Arena Setup. Instances are on their own page: Arena Instances.
Lobby
lobby:
world: spawn
worlds: [spawn] # every lobby world
x: 0.0 # set with /sd setlobby
teleport-on-join: true
give-items-on-join: true
per-world-items:
enabled: true # lobby items only in lobby worlds
exp-bar-elo: true # Elo on the XP bar
adventure-mode: true
protect-world: true # lobby game rules: no PvP, no mobs, fixed time and weather
gamerules: {...}
Lobby flight, double jump and elytra are permissions. See Permissions.
Portals
portals:
block-nether: true
block-end: true
block-end-gateway: true
Stops players in lobby and arena worlds, matches and spectating from using portals. Players in other worlds are not affected. The message is general.portal-blocked.
Enabled worlds
enabled-worlds:
lobby: [spawn]
kit-editor: [spawn]
right-click-duel: [spawn]
Command restrictions
command-restrictions:
allowed: [leave, leavefight, surrender, forfeit, ff, spawn, spectate, spectatorleave, spectateleave]
in-party: [kiteditor, duel, ffa, spectate]
in-match-global: [kiteditor, duel, queue, play, ffa, party]
in-duel:
mode: block-all # block every command except "allowed"
commands: []
in-ffa: {mode: block-all, commands: []}
in-spectate: {mode: block-all, commands: []}
Admins are never blocked.
Party
party sets the default size, size permissions, invite time, member limit input and external commands. party-chat.format is the party chat line. party-ffa.spawn-circle-radius sets how far apart party FFA players start. See Party System.
Waits
leavefight:
delay: 1 # seconds before /leavefight teleports
spawn:
delay: 1 # seconds before /spawn teleports
Inventory resync
inventory-resync:
enabled: true
delay-ticks: 5
Sends the player's real inventory again a few ticks after a kit is given and after a menu closes. This removes items the client shows by mistake. It costs one packet.
Small caps
small-caps:
kit-names: false # kit names in small capital letters
player-names: false # player names in plugin messages
You can always write <smallcaps>text</smallcaps> in any message, menu or kit name. Only letters change.
Duel settings
duel-settings:
enabled: true
options: {fall-damage: true, double-jump: true, infinite-blocks: true, bed-bombing: true}
Rule switches on the dialog duel send page. See /duel Match Settings.
Duels
duels:
elimination:
fly-mode: true # dead players fly invisible instead of spectator mode
win-flight:
enabled: false # everyone flies after a round or match is won
death-animation: {...}
round-launch: {...}
health-indicator: {...}
start-elevator: {...}
round-system: BEST_OF # BEST_OF or FIRST_TO
invite-expiration: 60
invite-resend-cooldown: 10
start-countdown: 5
round-countdown: 3 # countdown for round 2 and later (0 = use start-countdown)
end-commands: []
xp-animation:
enabled: false
round:
next-round-delay: 5s
score-chat: true
match-point: {enabled: true, fade-in: 4, stay: 40, fade-out: 10}
fight-title-on-early-start: true
match:
end-delay: 5s
action-bar: {...}
The effects are explained in Match Effects. With BEST_OF and 3 rounds a player needs 2 wins. With FIRST_TO and 3 rounds a player needs 3 wins.
The match action bar (duels.action-bar.format) can use <head:self>, <head:enemy>, {wins}, {opponent_wins}, {rounds}, {round}, {player} and {opponent}.
Spectate
spectate:
camera: {enabled: true, distance: 4.0, height: 1.5, smoothing: 0.25, idle-resume-seconds: 5}
follow: {enabled: true, unfollow-sneak-seconds: 3}
See Spectating.
World border
world-border:
enabled: true
padding: 0.0
warning-blocks: 0
warning-time: 0
world-border-shrink:
enabled: false
...
See Arena World Border.
Queue
queue:
default-type: "RANKED" # type used by /queue without a type
only-allow-ranked: false
multiple-kits: true # queue for more than one kit at once
max-multiple-kits: 3 # 0 = no limit
random-queue-enabled: true
override-conflicting-commands: true # our /queue wins over other plugins' /queue
modes: {1v1: true, 2v2: true, 3v3: true, 4v4: true}
types:
ranked: true # false = no ranked queue
unranked: true # false = no unranked queue
rounds: {ranked: 0, unranked: 0} # 0 = use the kit's rounds
match-found-animation: {...}
indicator: {...} # spinning item above queued players
Turn one of queue.types off for a ranked only or unranked only server. Its tab leaves the queue menu and /ranked or /unranked says it is off.
Bans and matchmaking filters
bans and matchmaking-filters are explained in Bans & Matchmaking.
Match start
match-start:
countdown-seconds: [5, 4, 3, 2, 1]
match-start-potions:
enabled: true
delay_seconds: 1
take-from-inventory: true
blocked-effects: [...]
See Kit Setup.
FFA
ffa sets the reset time, countdown, respawn and random spawns. See FFA Mode.
Chat and right click
match-chat:
default-enabled: true
isolate-match-chat: false # true = chat in a match only goes to that match
right-click:
enabled: true
action: profile # profile or command
commands: ["duel %clicked_player%"]
Kit sharing and custom kits
kit-sharing: see Kit Sharing. custom-kits: see Custom Kits and Custom Kit Rules.
Killstreaks, death messages and Auto GG
killstreaks:
enabled: true
broadcast: true
tiers:
- {kills: 5, name: "Killing Spree"}
death-messages:
enabled: true
customizable: true
kill-commands:
enabled: false
attacker: []
victim: []
anti-farm: {enabled: true, use-elo-settings: true, cooldown-hours: 2, max-wins-per-opponent: 5, block-same-ip: true}
auto-gg:
enabled: true
delay-seconds: 2
default-enabled: true
Cosmetics
cosmetics:
strip-without-permission:
enabled: true
permission: "shyamduels.cosmetics"
armor-trims: true
banner-patterns: true
Players without the permission lose armor trims and banner patterns on kit items in fights.
Combat: death drops and kill refill
combat:
death-drops:
ffa: false
duels: false
lifetime-seconds: 30
kill-regen:
enabled: true
duels: true
team-battle: true
party-vs-party: true
party-split: true
party-ffa: true
ffa: true
death-drops: dead players drop their items. Only these items vanish afterlifetime-seconds(1 to 300). XP is never dropped.kill-regen: the killer gets health and kit back after a kill. Turn it off per match type.- The old
anti-death-dropssetting is only read when the new switches are missing.
Block decay
block-decay:
timer: 5 # seconds before placed blocks vanish in block decay kits
GUI
gui:
mode: NORMAL # NORMAL = chest menus, DIALOG = dialogs
settings-mode: NORMAL # the settings menu can use its own mode
kit-sprite:
enabled: true # kit item icon in front of kit names
auto-prefix: true
white-sprite: true
white-names: false
See Menus & Dialogs.
Shulker preview
shulker-lore:
enabled: false
default-enabled: false
line-format: "<sprites>"
max-sprites-per-line: 9
lore-position: "BOTTOM"
Shows the items inside a shulker box in its lore, as small icons. Java 1.21.9 or newer. Players turn it on in /settings or with /shulkerlore.
Action bars
action-bar:
enabled: true
interval-ticks: 20
message: ""
saturation-action-bar:
enabled: true
show-in: fights # fights or everywhere
format: "<#FFAA00>Saturation: <#FFFFFF>{saturation}"
separator: " <#555555>|</#555555> "
update-ticks: 10
The saturation bar is off for each player until they turn it on in /settings. See Match Effects.
Join settings
join-message-filter:
enabled: true
default: everyone # everyone, friends or none
first-join-commands:
enabled: false
commands: []
every-join-commands:
enabled: false
commands: []
Practice items
golden-head (item, effects, cooldown), totem-practice, door-animation (see Gate Setup), bedfight and bridge (see Kit Setup). Each has comments in the file.
Player heads
heads:
mojang-enabled: true
mojang-interval-ms: 1400
max-entries: 20000
Skins for player heads in tab, menus and brackets are cached here.
Friends
friends:
request-expiry-seconds: 300 # 0 or less = requests never end
Pause menu links
pause-links:
enabled: true
links:
- name: "<#5865F2>Discord"
url: "https://discord.gg/your-invite"
Adds buttons under Server Links in the game's pause menu.
Match history
match-history:
enabled: true
keep-days: 30
save-inventories: true
See Match History.
Compatibility
compatibility:
fire-fake-death-event: true
Sends a normal death event when a player dies in a duel, so kill effect plugins work.
Placeholders
placeholders sets leaderboard size, empty texts, recent form letters, result words and heart formats. See Placeholders.
Kit editor
kiteditor:
invisibility: true
collision: false
vanish: true
lobby:
enabled: false # set with /sd setkiteditor
effects: {blindness: true, slowness: true}
movement-lock: true
database.yml
type: "SQLITE" # SQLITE or MYSQL
sqlite:
directory: data
arenas-file: arenas.db
kits-file: kits.db
stats-file: stats.db
mysql:
host: localhost
port: 3306
database: shyamduels
username: root
password: ""
use-ssl: false
maximum-pool-size: 30
minimum-idle: 10
performance:
auto-detect-threads: true
compute-threads: 4
io-threads: 8
autosave-minutes: 5 # save all online players every 5 minutes
Tables for tiers (tier_profiles), match history (match_history, match_history_players), bans and player choices (player_preferences) are made by themselves.
tab/ Files
tab/display.yml: tab header, footer, player format, sort ranks, nametags and the line under the name.tab/scoreboard.yml: lobby and match scoreboards.tab/animations.yml: tab animations.
Nametags use text displays by default (nametags.mode: text-display), which have no dark background. Set mode: scoreboard for normal Minecraft nametags. In tab/scoreboard.yml, async-placeholders: true reads PlaceholderAPI off the main thread. Set it to false if an expansion gives errors.
items/ Files
items/spawn-items.yml: lobby hotbar items and the rematch item.items/queue-items.yml: items while in a queue.items/party-items.yml: party hotbar items.
Custom Icons
Every item in a menu or item file can use a custom icon:
some-item:
material: DIAMOND_SWORD
custom-model-data: 1001 # resource pack model
# item-model: "minecraft:custom_sword"
# nexo: my_custom_icon # or material: "nexo:my_custom_icon"
A Nexo item is used first. Without Nexo, or if the item is not found, the normal material is used.
sounds.yml
match-start:
countdown:
enabled: true
sound: "BLOCK_NOTE_BLOCK_PLING"
volume: 1.0
pitch: 1.0
Set enabled: false to mute one sound.