Configuration
On this page(4)
SnChess ships with the following YAML files. New keys are auto-merged on boot; your edits and comments are preserved.
The board design scenes/board.json is not YAML. It is copied from the jar only when missing and is never overwritten. Delete it and run /chess reload to get the shipped one again.
config.yml
# ============================================================
# SnChess - configuration
# Managed by SnLib: new keys are auto-merged on boot; your values and
# comments are preserved. Do NOT add a config-version key (retired).
# Set update-configs: false to freeze this file (SnLib only warns about
# missing keys instead of inserting them).
# Sections marked "# sn:extensible" are yours: entries you delete there
# stay deleted.
# ============================================================
# Active language code; loads lang/messages_<code>.yml (falls back to en).
lang: en
# Master switch of the SnLib auto-updater for this plugin's managed files.
update-configs: true
# Runtime debug output (also toggleable live via /chess debug).
debug:
# Master toggle of the debug output.
enabled: false
# Verbosity threshold: OFF, INFO, DEBUG or TRACE.
level: DEBUG
# Category filter; an empty list lets every category through.
categories: []
# ------------------------------------------------------------
# Main command.
# ------------------------------------------------------------
command:
# Aliases of /chess. Re-read on /chess reload.
aliases: [ajedrez]
# ------------------------------------------------------------
# Database. type=sqlite needs nothing else; type=mysql reads host/port/etc.
# ------------------------------------------------------------
database:
# sqlite or mysql
type: sqlite
# MySQL connection (ignored when type is sqlite).
host: localhost
port: 3306
database: snchess
username: root
password: ""
# ------------------------------------------------------------
# Presentation. gui opens the menu; chat prints the text view.
# ------------------------------------------------------------
presentation:
# Bare /chess: gui opens the lobby, chat prints the generated help.
main: gui
# /chess top: gui opens the leaderboard menu, chat prints the top ten.
top: gui
# ------------------------------------------------------------
# Client. Chess is played on a 3D board of display entities, which only a
# Java client of a recent enough version can draw. Bedrock players (Geyser) are
# refused when Floodgate runs on THIS server; without it here they cannot be told
# apart from Java players. A refused client cannot invite, be invited,
# accept, create, join or spectate; the lobby and leaderboard menus still open.
# ------------------------------------------------------------
client:
# Lowest client protocol allowed to play or watch. 762 is 1.19.4, the first client with
# display entities. With ViaVersion on this server each player's real client version is
# read; without it every client speaks the server's own version.
min-protocol: 762
# ------------------------------------------------------------
# 3D board. The board stands in front of each player as display entities:
# aiming at a square highlights it, a click on one of your pieces selects it
# and a click on a highlighted square moves it.
# ------------------------------------------------------------
board:
# Board design under plugins/SnChess/scenes/. Copied from the jar when missing, so deleting
# it restores the shipped board. A file that cannot be used is reported in the console and
# the previous board stays in use; with none loaded, no game can start until it is fixed.
asset: board.json
# Blocks between the player and the near edge of the board when it appears (1 to 12).
distance: 2.0
# Height of the near edge of the board above the player's feet, in blocks (0 to 3).
height: 0.8
# Degrees the far side of the board is raised toward the player; 0 is a flat table (0 to 80).
tilt: 25.0
# Size of the whole board; 1.0 is about 4 blocks wide (0.3 to 3).
scale: 0.7
# When true, a game does not start for a player whose board would cut into solid blocks and
# they are told why; false builds the board wherever the player stands.
require-free-space: true
# Ticks between two checks of where each player who can act is aiming (1 to 20).
hover-interval: 2
# Farthest a player can aim at and click their board from, in blocks (3 to 32).
max-reach: 12.0
# A spectator who walks this many blocks from their board, or leaves its world, stops
# watching; 0 never ends the watch by distance (0 to 256).
spectator-leave-distance: 24.0
# View range of the board's entities; 1.0 is about 64 blocks (0.1 to 10).
view-range: 1.0
# Size of every text of the board; 1.0 is the size the board was designed with (0.2 to 4).
text-scale: 1.0
# Background of the texts, as #AARRGGBB.
text-background: "#64000000"
# Background of the action buttons, as #AARRGGBB.
button-background: "#B4501414"
# Seconds the resign button waits for the confirming click, made with the OTHER mouse button
# than the first one (1 to 30).
resign-confirm-seconds: 3
# Ticks the board takes to grow in and to fold away; 0 shows and removes it at once (0 to 60).
appear-ticks: 10
# Ticks a moving piece takes to glide to its square; 0 moves it at once (0 to 40).
move-ticks: 6
# Marks the legal destinations of the selected piece.
show-legal-moves: true
# Shows the captured pieces of each side in a row beside the board.
show-captured: true
# Glow colors (#RRGGBB): the selected piece, a king in check and the winning side.
glow:
selected: "#FFD21F"
check: "#FF4040"
winner: "#55FF55"
# ------------------------------------------------------------
# Game rules and timings.
# ------------------------------------------------------------
game:
# Time control of a game started without naming one; an id of time-controls below.
default-time-control: rapid
# Promote to a queen at once instead of opening the piece picker.
auto-queen: false
# Seconds left on a clock at which that player gets ONE low-time warning (sound and
# message); 0 or less sends no warning.
low-time-warning-seconds: 30
# Ticks the board stays up for the players after a game ends (0 to 1200).
end-close-delay: 100
# Positions that end a game as a draw. A draw by agreement is always available.
draw-rules:
# The same position appears three times.
threefold-repetition: true
# Fifty moves by each side pass without a capture or a pawn move.
fifty-move: true
# Neither side has enough pieces left to deliver checkmate.
insufficient-material: true
# ------------------------------------------------------------
# Time controls. Each entry is a clock preset players can pick with the
# optional time argument of invite, create, bet and betcreate.
# ------------------------------------------------------------
# sn:extensible
time-controls:
bullet:
# Name shown in messages and menus (colors allowed).
display-name: "&#FF5555Bullet"
# Minutes each side starts with (0 to 720, fractions allowed); 0 or less means no clock,
# and a game without a clock cannot carry a bet. A clock shorter than one second counts
# as one second.
minutes: 1
# Seconds added to a side's clock after each of its moves (0 to 600).
increment-seconds: 0
blitz:
display-name: "&#FFAA00Blitz"
minutes: 5
increment-seconds: 0
rapid:
display-name: "7FF55Rapid"
minutes: 10
increment-seconds: 0
# ------------------------------------------------------------
# Rating. With it on, every finished game that is not a preview moves the
# Elo rating of both players, and the leaderboard is ordered by it.
# ------------------------------------------------------------
rating:
# Master switch of the Elo rating. false: no game changes a rating, no rating is
# shown anywhere (seat plates, leaderboard menu, /chess top, %snchess_rating%
# answers status.none) and the leaderboard ranks by wins. Wins, losses and draws
# are recorded either way; turning it back on shows the ratings kept so far.
enabled: false
# Rating of a player who has not played yet (0 to 10000).
start: 1200
# Largest rating change one game can cause, the K factor of the Elo formula (1 to 400).
k-factor: 32
# ------------------------------------------------------------
# Invites and lobby.
# ------------------------------------------------------------
invites:
# Seconds before a pending invite expires silently (5 to 3600). Expiry is checked
# about twice per lifetime, at most every 30 seconds, so an invite may outlive this
# by up to that.
expire-seconds: 60
lobby:
# Ticks between two in-place refreshes of every open lobby menu; 0 or less disables,
# positive values are floored at 5 (up to 1200).
refresh-interval: 20
# ------------------------------------------------------------
# Restrictions.
# ------------------------------------------------------------
restrictions:
# Worlds where /chess is refused (exact, case-sensitive world names).
worlds: []
# ------------------------------------------------------------
# Currencies available for bets. Each entry needs a PlaceholderAPI
# placeholder that returns the player's balance as a bare number, and the
# console commands used to pay out and to charge. Tokens: {player} {amount}.
# ------------------------------------------------------------
# sn:extensible
currencies:
coins:
# Name shown in messages and menus (colors and PlaceholderAPI tokens allowed; a token
# resolves for whoever reads the line, except in the server-wide won-bet announcement,
# which has no single reader).
display-name: "&#FFD700Coins"
# Console command that gives money to a player. Needs {player} and {amount}.
give-command: "eco give {player} {amount}"
# Console command that takes money from a player. Needs {player} and {amount}. The balance
# is read again after it runs and the stake counts only once it is seen to drop.
take-command: "eco take {player} {amount}"
# PlaceholderAPI placeholder that resolves to the player's exact balance as a bare number
# (colors, currency symbols such as $ around it and comma thousands are fine). Anything
# else is refused: letters or words (1.5M, 100 coins), dot or space grouped (1.234,56)
# and negative balances. A stake finer than the balance shows is refused too (100.5 cannot show 0.25,
# 3.0312E7 cannot show 100), and so is every bet on a balance with exactly 3 decimals.
balance-placeholder: "%vault_eco_balance%"
# Decimals this currency counts: 2 for money, 0 for a points economy or a placeholder
# that answers whole numbers (such as %vault_eco_balance_fixed%). Stakes may not be
# finer than this. 0 to 2; anything else counts as the nearer bound.
decimals: 2
# Ticks the balance is watched for a take or give to show up after its command ran.
# Keep 0 for an economy that applies commands at once: the balance must move in the same
# tick. A proxy economy (one that forwards the command to BungeeCord/Velocity, such as
# SnCredits) answers a round trip later and needs a wait, for example 60; at most 200.
# Waiting is weaker proof: while it waits, another debit of exactly the stake (or a stale
# balance catching up with one) passes as the stake being paid. A take never seen is
# refused and written to owed.log; until reload it stops every bet in the currency when
# this is 0, and only that player's bets in it otherwise.
confirm-ticks: 0
# ------------------------------------------------------------
# Feedback: broadcasts, sounds and leaderboard refresh.
# ------------------------------------------------------------
broadcasts:
# Announce to the whole server when a public game is listed.
public-game-created: true
# Seconds before the same player's next new listing is announced again (0 to 3600).
public-game-cooldown-seconds: 30
# Announce to the whole server when a game is won.
game-won: true
# Sound specs: "SOUND_ID [volume] [pitch]"; "none" disables a sound.
sounds:
# Played to every viewer when a piece moves.
piece-move: "BLOCK_WOOD_PLACE 1.0 1.0"
# Played to every viewer when a piece captures another.
piece-capture: "BLOCK_WOOD_BREAK 1.0 0.9"
# Played to every viewer when a move gives check.
check: "BLOCK_NOTE_BLOCK_BELL 1.0 1.0"
# Played to every viewer when a pawn is promoted.
promotion: "ENTITY_PLAYER_LEVELUP 0.8 1.4"
# Played to the winner.
game-win: "ENTITY_PLAYER_LEVELUP 1.0 1.0"
# Played to the loser.
game-lose: "ENTITY_VILLAGER_NO 1.0 0.8"
# Played to both players when a game ends in a draw.
game-draw: "BLOCK_NOTE_BLOCK_CHIME 1.0 0.8"
# Played to a player who resigns.
resign: "ENTITY_VILLAGER_HURT 1.0 1.0"
# Played to a player when the low-time warning fires on their clock.
low-time: "BLOCK_NOTE_BLOCK_PLING 1.0 2.0"
# Played to a player when they select one of their pieces.
piece-select: "BLOCK_NOTE_BLOCK_HAT 0.5 1.6"
# Played to a player who tries a move that is not legal.
illegal-move: "BLOCK_NOTE_BLOCK_BASS 1.0 0.7"
# Played to a player who receives a draw offer.
draw-offer: "ENTITY_EXPERIENCE_ORB_PICKUP 1.0 1.2"
# Played to a player when their board appears in front of them.
board-appear: "BLOCK_AMETHYST_BLOCK_CHIME 1.0 1.2"
leaderboard:
# Seconds between two refreshes of the cached top ten (5 to 3600).
refresh-interval: 60guis/lobby.yml
# ============================================================
# SnChess - lobby menu
# Managed by SnLib: new keys merge in on boot, your values are kept.
# Restyle any line freely; your edits survive updates.
# ============================================================
# Window title.
title: "₢f2&lChess Lobby"
# Only left, right and shift clicks act on the buttons and entries.
strict-clicks: true
# Menu geometry. f is the border, p holds the games waiting for an opponent and
# a the games already running. Move a letter and what it holds moves with it.
# c = create a public game l = leaderboard x = close
layout:
- "fffffffff"
- "fpppppppf"
- "fpppppppf"
- "faaaaaaaf"
- "faaaaaaaf"
- "fffcxlfff"
# Cell groups the plugin fills at runtime. How many entries fit is decided here:
# extra games beyond the cells you declare are simply not shown.
regions:
# Games waiting for an opponent, oldest first.
public-games:
key: p
# Games already running, open to spectators, oldest first.
active-games:
key: a
# Buttons and decoration. Remove one here and it stays removed.
# sn:extensible
items:
# Border.
filler:
material: GRAY_STAINED_GLASS_PANE
display-name: " "
key: f
# Lists a friendly game at the default time control (game.default-time-control).
# Games with a time control or a bet are created with the create, bet and
# betcreate commands.
create:
material: EMERALD
display-name: "7FF55&lCreate Game"
lore:
- ""
- "&7Click to list a public game"
- "&7and wait for an opponent."
key: c
click-actions:
- "[lobby-create]"
- "[sound] UI_BUTTON_CLICK"
# Opens the leaderboard.
leaderboard:
material: GOLD_INGOT
display-name: "&#FFD700&lLeaderboard"
lore:
- ""
- "&7Click to see the top players."
key: l
click-actions:
- "[lobby-top]"
- "[sound] UI_BUTTON_CLICK"
# Closes the menu.
close:
material: BARRIER
display-name: "&cClose"
key: x
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[close]"
templates:
# One game waiting for an opponent. %time_control% is the clock preset and
# %bet_info% the stake (or the no-bet word), both set in the language file under
# status.time-control, status.no-bet and status.bet-info. Keep %listing% as the
# argument of [lobby-join]: it names the exact listing, and a bet game is only
# joined through it.
public-game:
material: PLAYER_HEAD
skull-owner: "{creator}"
display-name: "7FF55%creator_name%'s Game"
lore:
- ""
- "&7Time: %time_control%"
- "%bet_info%"
- ""
- "&7Click to join this game!"
click-actions:
- "[lobby-join] %listing%"
# One running game, clickable to spectate it. White is the first player named.
active-game:
material: SPYGLASS
display-name: "&#FFAA00%white_name% &7vs &#FFAA00%black_name%"
lore:
- ""
- "&7Time: %time_control%"
- "&7Turn: &f%current_turn%"
- "%bet_info%"
- ""
- "&7Click to spectate!"
click-actions:
- "[lobby-spectate] %white%"guis/leaderboard.yml
# ============================================================
# SnChess - leaderboard menu
# Managed by SnLib: new keys merge in on boot, your values are kept.
# Restyle any line freely; your edits survive updates.
# ============================================================
# Window title.
title: "₢f2&lChess Leaderboard"
# Menu geometry. f is the border and e holds the ranked players, seven on the
# first row and three on the second. Move a letter and what it holds moves.
# s = your own statistics x = close
layout:
- "fffffffff"
- "feeeeeeef"
- "fffeeefff"
- "fffffffff"
- "ffffsffff"
- "ffffxffff"
# Cell groups the plugin fills at runtime.
regions:
# The ranked players, highest rating first (most wins first while
# rating.enabled is false). The plugin caches the top ten, so
# cells past the tenth stay empty.
entries:
key: e
# Buttons and decoration. Remove one here and it stays removed.
# sn:extensible
items:
# Border.
filler:
material: GRAY_STAINED_GLASS_PANE
display-name: " "
key: f
# Closes the menu.
close:
material: BARRIER
display-name: "&cClose"
key: x
click-actions:
- "[sound] UI_BUTTON_CLICK"
- "[close]"
templates:
# One ranked player. %rank_color% is the colour of the position, configured
# under status.rank-1 to status.rank-default in the language file.
# skull-owner takes {player_uuid}, the id of the ranked player of the row.
entry:
material: PLAYER_HEAD
skull-owner: "{player_uuid}"
display-name: "%rank_color%#%position% &8- %rank_color%%player%"
lore:
- ""
- "&7Rating: ₢f2%rating%"
- "&7Wins: 7FF55%wins%"
- "&7Losses: &#FF5555%losses%"
- "&7Draws: &#FFFF55%draws%"
- "&7Win Rate: &#FFAA00%winrate%%"
- "&7Best Streak: &#FFD700%best_streak%"
# The viewer's own statistics, read fresh from the database on every open.
self:
material: PLAYER_HEAD
skull-owner: "{player_uuid}"
display-name: "&#FFAA00&lYour Stats"
lore:
- ""
- "&7Rank: &#FFD700%rank%"
- "&7Rating: ₢f2%rating%"
- "&7Wins: 7FF55%wins%"
- "&7Losses: &#FF5555%losses%"
- "&7Draws: &#FFFF55%draws%"
- "&7Win Rate: &#FFAA00%winrate%%"
- "&7Best Streak: &#FFD700%best_streak%"
- "&7Games Played: &f%games_played%"
key: s
# entry and self as they render while rating.enabled is false (config.yml):
# the same placeholders, without the rating.
entry-unrated:
material: PLAYER_HEAD
skull-owner: "{player_uuid}"
display-name: "%rank_color%#%position% &8- %rank_color%%player%"
lore:
- ""
- "&7Wins: 7FF55%wins%"
- "&7Losses: &#FF5555%losses%"
- "&7Draws: &#FFFF55%draws%"
- "&7Win Rate: &#FFAA00%winrate%%"
- "&7Best Streak: &#FFD700%best_streak%"
self-unrated:
material: PLAYER_HEAD
skull-owner: "{player_uuid}"
display-name: "&#FFAA00&lYour Stats"
lore:
- ""
- "&7Rank: &#FFD700%rank%"
- "&7Wins: 7FF55%wins%"
- "&7Losses: &#FF5555%losses%"
- "&7Draws: &#FFFF55%draws%"
- "&7Win Rate: &#FFAA00%winrate%%"
- "&7Best Streak: &#FFD700%best_streak%"
- "&7Games Played: &f%games_played%"
key: slang/messages_en.yml
# ============================================================
# SnChess - language file (English)
# Managed by SnLib: new keys merge in on boot, your values are kept.
# Restyle any line freely; your edits survive updates.
# ============================================================
# Prefix prepended to every single-line message sent via sn.lang().send(...)
prefix: "₢f2&lSnChess &8| &7"
# snlib.* is SnLib's shared command contract (14 keys; the two help.group-*
# keys exist since SnLib 1.36.0). Every Sn plugin ships
# this block UNCHANGED: SnLib bundles NEUTRAL defaults for any key you omit and
# merges them in on boot, so an incomplete block leaks unbranded lines. Shipping
# the FULL block is what keeps the whole fleet visually identical. Placeholders
# {plugin} {usage} {description} {page} {total} {min} {max} {value} {command}
# {group} {path} are filled by SnLib. NEVER put {prefix} here (it is auto-prepended).
snlib:
no-permission: "&cYou do not have permission to use this command."
usage: "&cUsage: &e{usage}"
invalid-number: "&cInvalid number: &e{value}"
invalid-value: "&cInvalid value: &e{value}"
out-of-range: "&cValue must be between &e{min} &cand &e{max}&c: &e{value}"
number-too-small: "&cValue must be at least &e{min}&c: &e{value}"
player-not-found: "&cPlayer not found: &e{value}"
unknown-subcommand: "&cUnknown subcommand: &e{value}"
reload-done: "&aConfiguration reloaded."
help:
header: "&8&m----------&r ₢f2&l{plugin} &8&m----------"
# Branded no-separator form. SnLib's neutral default is "&e{usage} &7{description}".
entry: "₢f2{usage} &7{description}"
footer: "&7Page &f{page}&7/&f{total} &8- ₢f2/{command} help <page>"
# Own help of a groupHelp() command group (/<cmd> admin <module> help).
group-header: "&8&m----------&r ₢f2&l{group} &8&m----------"
group-footer: "&7Page &f{page}&7/&f{total} &8- ₢f2{path} help <page>"
# Your own plugin messages. Do NOT write {prefix} in any value: SnLib
# auto-prepends the prefix above to every single-line message sent via
# sn.lang().send(...). Each key lists the tokens the plugin fills.
messages:
errors:
# Sent when the console runs a subcommand of the game. Every subcommand needs a
# player: a board, a seat, a balance and a world all belong to one.
players-only: "&cThis command can only be used by players."
# {player} = the typed name, or the inviter who is no longer online
player-not-found: "&cPlayer &f{player} &cnot found."
# Sent when you try to start, join or watch while you hold a seat.
already-in-game: "&cYou are already in a game!"
# Sent when you already hold a pending invite OR a public game listing.
already-has-invite: "&cYou already have a pending invite or public game."
# Sent by accept and reject without an invite to answer.
no-pending-invite: "&cYou have no pending invite."
# Sent by /chess cancel when the player sent no invite and listed no game.
nothing-to-cancel: "&cYou have no invite or public game of your own to cancel."
# Sent when you name yourself in invite or bet.
cannot-invite-self: "&cYou can't invite yourself!"
# {player}
target-already-in-game: "&f{player} &cis already in a game."
# {player}
target-has-invite: "&f{player} &calready has a pending invite or public game."
# Sent when the other player may not take part in bet games (a permission is missing).
# {player}
target-no-bet: "&f{player} &cmay not take part in bet games."
# {currency} = the typed currency id, or the one a listing or invite was made in
invalid-currency: "&cUnknown currency: &f{currency}&c."
# Sent when the stake could not be taken: the balance cannot be read, the take command
# could not run, the charge was never seen, or an earlier charge was never seen (until
# /chess reload). The console names the config key to fix. {currency}
currency-unavailable: "&cBets in &f{currency} &care unavailable right now. Ask an admin to check the console."
# Sent when a bet cannot start because a stake of one of its players is still being
# confirmed (the economy has not shown the charge yet).
charge-pending: "&cA payment is still being confirmed. Try again in a moment."
# Sent when a stake carries more decimals than the currency counts. {currency}
# {decimals} = the decimals of that currency (config currencies.<id>.decimals)
amount-precision: "&cAmounts in &f{currency} &cmay have at most &f{decimals} &cdecimals."
# {currency} = the currency display name
insufficient-balance: "&cYou don't have enough &f{currency} &cto place this bet."
# {player} {currency}
target-insufficient-balance: "&f{player} &cdoesn't have enough &f{currency}&c."
# Sent when the listing was taken or cancelled before the join.
no-public-game: "&cThat public game is no longer available."
# Sent by a lobby click on an entry that changed under the cursor: another listing took its
# place, or its creator listed again.
listing-changed: "&cThat listing just changed. Check it and click again."
# {player}
player-not-in-game: "&f{player} &cis not in a game."
# Sent in a world listed in restrictions.worlds.
restricted-world: "&cYou can't use Chess in this world."
# Sent when the leaderboard menu could not read your statistics; the console has the cause.
top-unavailable: "&cThe leaderboard is not available right now. Try again later."
# {player} = the player standing in a world listed in restrictions.worlds
target-restricted-world: "&f{player} &cis in a world where Chess is not available."
# Sent when the invited player lacks the basic permission. {player}
target-no-permission: "&f{player} &cmay not play chess."
# Sent when a bet is combined with a time control that has no clock.
bet-needs-clock: "&cBet games need a time control with a clock."
# Sent to a player whose client cannot show the board: Bedrock, or older than
# client.min-protocol in config.yml.
client-unsupported: "&cYour client cannot show the chess board. Join with a newer Minecraft Java Edition; Bedrock is not supported."
# {player} = the player whose client cannot show the board
target-client-unsupported: "&f{player} &cplays on a client that cannot show the chess board."
# {time} = the typed time control, {options} = the available ids separated by commas
unknown-time-control: "&cUnknown time control: &f{time}&c. Options: &f{options}&c."
# Sent to a player whose board would not fit in front of them (config board.require-free-space).
no-room: "&cThere is no room in front of you for the board. Step into an open space and try again."
# {player} = the player whose board would not fit
target-no-room: "&f{player} &chas no room for the board right now."
# Sent when the board design file cannot be used; the console names the reason.
board-unavailable: "&cThe chess board is not available right now. Ask an admin to check the console."
invite:
# {player} {seconds} {time} = the time control (time-controls display name and pace)
sent: "&aInvite sent to &f{player}&a! Time control: &f{time}&a. Expires in &f{seconds}s&a."
# {player} = the inviter, {time}
received: "&f{player} ₢f2has invited you to a game of chess! &7Time control: &f{time}₢f2."
# {player} {amount} {currency} {time}
received-bet: "&f{player} ₢f2has invited you to a &#FFD700{amount} {currency} ₢f2bet game of chess! &7Time control: &f{time}₢f2."
# Clickable accept / reject line. Keep the <click> and <hover> tags: SnLib never
# repairs a value that lost them. The commands are also shown as plain text for
# Bedrock players, who cannot click.
buttons: "[noprefix] <click:run_command:'/chess accept'><hover:show_text:'&aClick to accept the invite'>&a&l[ACCEPT]</hover></click> <click:run_command:'/chess reject'><hover:show_text:'&cClick to reject the invite'>&c&l[REJECT]</hover></click> &8(&7/chess accept &8| &7/chess reject&8)"
# The same line for an invite with a bet. {token} names that one invite: keep it in the
# accept command, or a bet invite cannot be accepted.
buttons-bet: "[noprefix] <click:run_command:'/chess accept {token}'><hover:show_text:'&aClick to accept the bet invite'>&a&l[ACCEPT]</hover></click> <click:run_command:'/chess reject'><hover:show_text:'&cClick to reject the invite'>&c&l[REJECT]</hover></click> &8(&7/chess accept {token} &8| &7/chess reject&8)"
# Sent instead of accepting, followed by the offer as it stands now, when the accept did not
# name this bet invite (it was typed without its code, or the invite changed). Nothing was
# charged.
confirm-bet: "&eCheck the bet below and accept it with its button. Nothing was charged."
# {player} = the player who rejected (sent to the inviter)
rejected: "&f{player} &crejected your invite."
# Confirmation to the player who rejected.
rejected-you: "&7Invite rejected."
cancelled: "&7Invite cancelled."
# Sent to the invitee when the inviter cancels. {player} = the inviter
cancelled-by-inviter: "&f{player} &7cancelled the invite."
public-game:
# {time}
created: "&aPublic game created! Time control: &f{time}&a. Waiting for an opponent..."
# {amount} {currency} {time}
created-bet: "&aPublic &#FFD700{amount} {currency} &abet game created! Time control: &f{time}&a. Waiting for an opponent..."
cancelled: "&7Public game cancelled."
# Sent to a player who clicks their own listing in the lobby.
own: "&7That is your own game. Wait for an opponent, or take it down with &f/chess cancel&7."
# {player} = the player who joined (sent to the creator)
joined: "&f{player} &ajoined your game! Starting..."
# {player} = the creator (broadcast to the whole server), {time}
broadcast: "&f{player} ₢f2created a public chess game (&f{time}₢f2)! Use &f/chess lobby ₢f2to join."
game:
# {white} {black} = the two player names, {time} = the time control
started: "&aGame started! &f{white} &7(white) vs &f{black} &7(black)&a. Time control: &f{time}&a."
# {side} = the label of the receiver's side (status.white or status.black)
you-play: "&7You play {side}&7. White moves first."
# {player} = the player whose king is attacked
check: "&c&lCheck! &f{player}&7's king is attacked."
promotion-prompt: "₢f2Choose the piece your pawn becomes."
# {seconds} = seconds left on the receiver's clock
low-time: "&cHurry! Only &f{seconds}s &cleft on your clock!"
win-checkmate: "&#FFD700Checkmate! &aYou won the game!"
# {opponent} = the player who resigned
win-resignation: "&f{opponent} &7resigned. &aYou win!"
# {opponent} = the player who ran out of time
win-timeout: "&f{opponent} &7ran out of time. &aYou win!"
# {opponent} = the player who left the game
win-disconnect: "&f{opponent} &7left the game. &aYou win!"
# {opponent} = the player who delivered checkmate
lose-checkmate: "&cCheckmate. &f{opponent} &cwon the game."
# Sent to the player who resigned. No tokens.
lose-resignation: "&7You resigned the game."
# {opponent} = the player who won on time
lose-timeout: "&cYou ran out of time. &f{opponent} &cwon the game."
draw-stalemate: "&eStalemate! The game ended in a draw."
draw-agreement: "&eThe game ended in a draw by agreement."
draw-repetition: "&eThe same position appeared three times. The game ended in a draw."
draw-fifty-move: "&eFifty moves passed without a capture or a pawn move. The game ended in a draw."
draw-insufficient-material: "&eNeither side has enough pieces to checkmate. The game ended in a draw."
# Sent when a clock ran out but the other side cannot checkmate. {player} = the player who ran out of time
draw-timeout-insufficient-material: "&f{player} &7ran out of time, but the other side cannot checkmate with the pieces it has left. &eThe game ended in a draw."
# {player} = the player the offer went to
draw-offer-sent: "&7Draw offered to &f{player}&7. They can accept it on their board."
# {player} = the player who offers
draw-offer-received: "&f{player} &eoffers a draw. Press the draw button on your board to accept, or make a move to decline."
# {player} = the player who declined (sent to the one who offered)
draw-offer-declined: "&f{player} &cdeclined your draw offer."
# Rating line after a game. {rating} = the new rating, {change} = the signed change
# (status.rating-up or status.rating-down)
rating-change: "&7Rating: &f{rating} &8({change}&8)"
bet:
# {amount} = the payout (2x the stake) {currency}
won: "&aYou won &#FFD700{amount} {currency}&a!"
# {amount} = the stake {currency}
lost: "&cYou lost &#FFD700{amount} {currency}&c."
# {amount} {currency}
deducted: "&#FFD700{amount} {currency} &7has been deducted from your balance."
# Draw refund. {amount} {currency}
refunded: "&eDraw! Your bet of &#FFD700{amount} {currency} &ehas been refunded."
# A stake given back without a result: a cancelled listing, a game that could not start,
# or one ended unfinished (server stop, restart or plugin disable). {amount} {currency}
returned: "&eThe game was cancelled. Your bet of &#FFD700{amount} {currency} &ehas been returned."
broadcasts:
# {winner} {loser}
game-won: "&#FFD700{winner} &awon a chess game against &f{loser}&a!"
# {winner} {loser} {amount} = the payout {currency}
game-won-bet: "&#FFD700{winner} &awon &#FFD700{amount} {currency} &ain a chess game against &f{loser}&a!"
spectate:
# {white} {black}
started: "&7Now spectating: &f{white} &7vs &f{black}&7."
# {result} = the status.result-* word of how the game ended
game-over: "&7The game you were spectating has ended &8(&7{result}&8)&7."
stopped: "&7You stopped watching the game."
# /chess preview: an admin holding BOTH seats, to look at the board with nobody else
# online. Nothing about it is recorded, announced or paid.
preview:
# {button} = the label of board.button-end-preview
started: "&7Preview started &8- &7you hold both seats. Nothing is recorded or announced; press {button} &7on the board to end it."
# {winner} = the side label of the winning seat (status.white or status.black)
# {result} = how it ended, the status.result-* word
ended: "&7Preview over &8- {winner} &7won &8(&7{result}&8)&7."
# {result} = how it ended, the status.result-* word
ended-draw: "&7Preview over &8- &7draw &8(&7{result}&8)&7."
# Sent when the admin ends a preview that is still running.
cancelled: "&7Preview ended &8- &7nothing was recorded."
board:
# Sent after the bare /chess brought the board back in front of a seated player.
recalled: "&7Your board is in front of you again."
# Chat mode of /chess top (presentation.top: chat). Header lists render one line per entry.
lists:
top-header:
- "&8&m----------&r ₢f2&lChess leaderboard &8&m----------"
# {rank_color} = status.rank-* color, {rank} {player} {rating} {wins} {losses} {draws}
top-entry: "{rank_color}#{rank} &f{player} &8- &7Rating &f{rating} &8| &aW &f{wins} &8| &cL &f{losses} &8| &eD &f{draws}"
# top-entry while rating.enabled is false. Same placeholders as top-entry.
top-entry-unrated: "{rank_color}#{rank} &f{player} &8- &aW &f{wins} &8| &cL &f{losses} &8| &eD &f{draws}"
# Shown instead of the rows when nobody has played a game yet.
top-empty: "&7Nobody has played a game yet."
# Texts drawn on the 3D board (board in config.yml). Lists render one line per entry.
board:
title: "₢f2&lCHESS"
# Status line under the title. {player} = the player on turn, {side} = that player's
# side (status.white or status.black)
status-your-turn: "7FF55&lYour turn"
status-your-turn-check: "&c&lCheck! 7FF55&lYour turn"
status-their-turn: "&7Turn of &f{player} &8(&r{side}&8)"
status-their-turn-check: "&c&lCheck! &7Turn of &f{player} &8(&r{side}&8)"
# Status line while the player on turn chooses the piece a pawn becomes.
status-promotion: "&e&lChoose a piece to promote to"
# Result line. {player} = the winner, {reason} = how the game ended (status.result-* word)
result-won: "7FF55&lYOU WIN! &8- &7{reason}"
result-lost: "&c&lYOU LOSE &8- &f{player} &7wins &8- &7{reason}"
result-winner: "&#FFD700&l{player} wins! &8- &7{reason}"
result-draw: "&e&lDRAW &8- &7{reason}"
result-cancelled: "&7&lGame cancelled"
# Plate by each side. {name} {side} (status.white or status.black) {rating} (status.none
# when unrated) {clock} (one of the clock-* lines, or status.no-clock)
seat:
- "&f&l{name}"
- "{side} &8| &7{rating}"
- "{clock}"
# Plate by each side while rating.enabled is false. Same placeholders as seat.
seat-unrated:
- "&f&l{name}"
- "{side}"
- "{clock}"
# Clock of a side. {time} = the remaining time
clock-idle: "&f{time}"
# Clock of the side on turn.
clock-active: "7FF55&l{time}"
# Clock of the side on turn once it is at or under game.low-time-warning-seconds.
clock-low: "&c&l{time}"
# {bet_info} = status.bet-info. A game without a bet leaves this text empty.
bet: "{bet_info}"
button-resign: "&c&l[ RESIGN ]"
# Shown while a resignation waits for its confirming click, which has to come from the other
# mouse button than the first one: one key per button to press.
button-resign-confirm-left: "&c&lLeft click to resign"
button-resign-confirm-right: "&c&lRight click to resign"
button-offer-draw: "&e&l[ OFFER DRAW ]"
button-accept-draw: "&a&l[ ACCEPT DRAW ]"
# Shown to the player whose draw offer is waiting for an answer.
button-draw-offered: "&7Draw offered"
button-end-preview: "&e&l[ END PREVIEW ]"
button-stop-watching: "&7&l[ STOP WATCHING ]"
button-ended: "&8Game over"
# Short state words. Each is substituted into a placeholder slot of the messages
# above, of the menus under guis/ and of the PlaceholderAPI output, so a restyle
# here applies everywhere at once.
status:
# Shown instead of a name that no longer resolves. Color codes are stripped on read.
unknown: "Unknown"
# Shown where there is no value: an unranked player, a player without a rating.
none: "-"
# Shown instead of the bet of a game that has none.
no-bet: "&7No bet"
# {amount} {currency}
bet-info: "&7Bet: &#FFD700{amount} {currency}"
# Output of %snchess_playing%.
playing: "true"
idle: "false"
# Side labels of the two colors.
white: "&fWhite"
black: "A8A8ABlack"
# Unit after a base time that is not a whole number of minutes, as in 90s+2.
seconds-unit: "s"
# Shown where a time control has no clock.
no-clock: "&7No clock"
# A time control. {name} = its display name, {time} = its pace (for example 10+0) or status.no-clock
time-control: "{name} &8(&7{time}&8)"
# Rating change next to a rating. {amount} = the size of the change
rating-up: "&a+{amount}"
rating-down: "&c-{amount}"
# How a game ended, for the {result} and {reason} tokens of the messages and board texts above.
result-checkmate: "Checkmate"
result-resignation: "Resignation"
result-timeout: "Out of time"
result-disconnect: "Disconnected"
result-stalemate: "Stalemate"
result-repetition: "Threefold repetition"
result-fifty-move: "Fifty-move rule"
result-insufficient-material: "Insufficient material"
result-agreement: "Draw by agreement"
result-timeout-insufficient-material: "Out of time against insufficient material"
# A game that ended with no result: a preview an admin ended.
result-cancelled: "Cancelled"
# Leaderboard rank colors: 1st, 2nd, 3rd and everyone else.
rank-1: "&#FFD700"
rank-2: "&#C0C0C0"
rank-3: "&#CD7F32"
rank-default: "&#FFFFFF"