Configuration
On this page(2)
SnKeyAll ships with the following YAML files. New keys are auto-merged on boot; your edits and comments are preserved.
config.yml
# ============================================================
# SnKeyAll - 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 /keyall 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 /keyall. Re-read on /keyall reload.
aliases: [ka]
# ------------------------------------------------------------
# KeyAlls. The time zone and the scheduled KeyAll definitions.
# ------------------------------------------------------------
# Time zone of every schedule, a Java zone id such as Europe/Madrid; empty uses the server zone.
timezone: ""
# One entry per KeyAll, keyed by its id (the id that /keyall start and /keyall cancel take).
# sn:extensible
keyalls:
daily:
# Name shown in announcements, commands and placeholders.
display-name: "₢f2Daily KeyAll"
# Run times: a 5-field cron (minute hour day-of-month month day-of-week) or daily HH:mm / hourly :mm.
schedule:
- "0 18 * * *"
- "0 21 * * *"
# Console commands run once per eligible player; {player} is the player name and PlaceholderAPI
# placeholders are parsed when it is installed. Works with SnCrates or any key plugin.
rewards:
- "llaves key give {player} vote 1"
# Optional countdown marks for this KeyAll only; remove it to use countdown.marks.
# countdown: [5m, 1m, 30s, 10s, 5s, 4s, 3s, 2s, 1s]
# ------------------------------------------------------------
# Manual start.
# ------------------------------------------------------------
start:
# Countdown length of /keyall start <id> when it runs without "now" (30s, 5m, 1m30s).
countdown: 30s
# ------------------------------------------------------------
# Eligibility limits. A player passes the link filter first, then the IP limit.
# ------------------------------------------------------------
link:
# Only players with a linked Discord account (SnDiscordLink) receive the KeyAll; false skips the filter.
required: true
# Limit of linked accounts per IP that receive the KeyAll.
ip-limit:
# Apply the per-IP limit.
enabled: true
# Accounts per IP that receive, the ones with the most playtime first; 0 means unlimited.
max-accounts-per-ip: 1
# Log a console WARN once per boot when 3+ online players share one IP (proxy IP forwarding looks disabled).
shared-ip-warning: true
# ------------------------------------------------------------
# Integrations. PlaceholderAPI values exposed under %snkeyall_...%.
# ------------------------------------------------------------
placeholders:
# Java date pattern of %snkeyall_next_at% and %snkeyall_next_at_<id>%, in the configured timezone (HH:mm, HH:mm:ss, d/M HH:mm).
time-format: "HH:mm"
# ------------------------------------------------------------
# Feedback. The countdown, its announcements and the notices sent to players.
# ------------------------------------------------------------
countdown:
# Moments before delivery that are announced (10m, 1m, 30s, 5s); a mark already past when a countdown starts is skipped.
marks: [10m, 5m, 1m, 30s, 10s, 9s, 8s, 7s, 6s, 5s, 4s, 3s, 2s, 1s]
# Where each countdown mark is shown.
announcements:
# Show each mark in chat.
chat: true
# Show each mark as a title and subtitle.
title: true
# Show each mark in the action bar.
actionbar: true
# Sound played at each mark.
sound:
# Play the sound.
enabled: true
# Sound id: an enum name, a namespaced key such as minecraft:block.note_block.pling, or a resource pack id.
name: BLOCK_NOTE_BLOCK_PLING
# Volume, 0.0 to 10.0.
volume: 1.0
# Pitch, 0.5 to 2.0.
pitch: 1.0
# Boss bar with the time left and the progress to delivery.
bossbar:
# Show the boss bar.
enabled: true
# How long before delivery the bar appears (5m, 90s).
show-from: 5m
# Bar color: PINK, BLUE, RED, GREEN, YELLOW, PURPLE or WHITE.
color: PURPLE
# Bar style: PROGRESS, NOTCHED_6, NOTCHED_10, NOTCHED_12 or NOTCHED_20.
style: PROGRESS
# Fade and display times of every title the plugin shows (0.5s, 3s).
title-times:
# Time the title takes to fade in.
fade-in: 0.5s
# Time the title stays fully visible.
stay: 3s
# Time the title takes to fade out.
fade-out: 0.5s
# What each player is told when the KeyAll is delivered.
notifications:
# Sent to every player who receives the KeyAll.
delivered:
# Send the message in chat.
chat: true
# Show the title and subtitle.
title: true
# Announce to the whole server how many players received the KeyAll.
broadcast: true
# Sound played to the player.
sound:
# Play the sound.
enabled: true
# Sound id.
name: ENTITY_PLAYER_LEVELUP
# Volume, 0.0 to 10.0.
volume: 1.0
# Pitch, 0.5 to 2.0.
pitch: 1.0
# Sent to online players whose Discord account is not linked.
not-linked:
# Send the message in chat.
chat: true
# Show the title and subtitle.
title: true
# Sound played to the player.
sound:
# Play the sound.
enabled: true
# Sound id.
name: ENTITY_VILLAGER_NO
# Volume, 0.0 to 10.0.
volume: 1.0
# Pitch, 0.5 to 2.0.
pitch: 1.0
# Sent to linked players left out by the per-IP limit.
ip-limited:
# Send the message in chat.
chat: true
# Show the title and subtitle.
title: true
# Sound played to the player.
sound:
# Play the sound.
enabled: true
# Sound id.
name: ENTITY_VILLAGER_NO
# Volume, 0.0 to 10.0.
volume: 1.0
# Pitch, 0.5 to 2.0.
pitch: 1.0lang/messages_en.yml
# ============================================================
# SnKeyAll - 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&lSnKeyAll &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(...). A literal {prefix} renders verbatim, and SnLib
# logs a one-time WARN when the active lang file contains one.
messages:
# --- Countdown (shown at every mark in announcements.* of config.yml) ---
# Every countdown line takes {keyall} (the KeyAll display name) and {time} (the time left,
# for example 5m 30s). The title and subtitle are two separate lines shown together.
countdown:
chat: "&7The {keyall} &7is delivered in ₢f2{time}&7."
title: "₢f2&l{time}"
subtitle: "&7until the {keyall}"
actionbar: "{keyall} &8| &7Delivery in ₢f2{time}"
bossbar: "{keyall} &8| &f{time}"
# --- Delivery ---
# Sent to each player who receives the KeyAll (chat, then the title and subtitle together).
delivered:
chat: "&aYou received the KeyAll rewards!"
title: "₢f2&lKeyAll"
subtitle: "&7Your rewards have been delivered"
# Announced to the whole server when notifications.delivered.broadcast is on.
# {keyall} is the KeyAll display name, {count} the number of players who received it.
broadcast: "{keyall} &7delivered! Players rewarded: ₢f2{count}&7."
# Sent to online players whose Discord account is not linked. Keep the <click> and <hover> tags
# balanced: SnLib never repairs a dropped tag. The typed command stays visible for Bedrock players.
not-linked:
chat: "&cYou did not receive the KeyAll because your Discord account is not linked. Run &f/link &cto link it. <click:run_command:'/link'><hover:show_text:'&aClick to get your link code'>&a[Link now]</hover></click>"
title: "&c&lKeyAll missed"
subtitle: "&7Link your Discord with &f/link"
# Sent to linked players left out by the per-IP limit.
# {receiver} is the name of the account on the same IP that received the KeyAll (chat, title and subtitle).
ip-limited:
chat: "&cYou did not receive the KeyAll: another account on your IP, &f{receiver}&c, received it instead."
title: "&c&lKeyAll missed"
subtitle: "&7Only some accounts per IP receive it"
# Sent to the online players holding snkeyall.notify (the console gets a WARN) when a KeyAll is
# not delivered because the SnDiscordLink API is missing or its lookup failed while link.required is true.
delivery-blocked: "&cThe KeyAll was not delivered: the SnDiscordLink API is unavailable. Update SnDiscordLink to 1.4.0 or newer, or set link.required to false."
# --- /keyall (bare) : the next KeyAlls ---
# {keyall} display name, {time} time left, {at} date and time of the run (time.at-format).
# Header and entry lines carry [noprefix] so they render the same sent or read.
next:
header: "[noprefix]&8&m----------&r ₢f2&lNext KeyAlls &8&m----------"
entry: "[noprefix]&8- {keyall} &8| &7in &f{time} &8(&7{at}&8)"
none: "&7There are no KeyAlls scheduled."
# --- /keyall list ---
# {id} KeyAll id, {keyall} display name, {schedule} its cron expressions, {at} next run
# (status.none when it has none).
list:
header: "[noprefix]&8&m----------&r ₢f2&lKeyAlls &8&m----------"
entry: "[noprefix]₢f2{id} &8- &f{keyall} &8| &7{schedule} &8| &7Next: &f{at}"
# --- /keyall start and /keyall cancel ---
# {keyall} display name, {time} length of the countdown.
start:
started: "&aStarted {keyall}&a with a countdown of &f{time}&a."
now: "&aDelivering {keyall}&a right now."
already-running: "&cThat KeyAll is already running."
cancel:
done: "&aCountdown cancelled."
not-running: "&cThat KeyAll has no countdown running."
# {value} is the id that matched no KeyAll in config.yml.
unknown-keyall: "&cUnknown KeyAll: &f{value}"
# --- /keyall check <player> ---
# {player} the checked player.
check:
header: "[noprefix]&8&m----------&r ₢f2&l{player} &8&m----------"
# {linked} status.linked / status.not-linked, {ip} the IP address (status.none when unknown),
# {group} linked accounts that share the IP, {playtime} time played here, {result}
# status.receives / status.skipped / status.bypass, {receiver} the account that receives
# instead of a skipped player (status.none otherwise).
lines:
- "&7Discord: {linked}"
- "&7IP: &f{ip} &8(&f{group} &7linked account(s) on it&8)"
- "&7Playtime: &f{playtime}"
- "&7Result: {result}"
- "&7Receives instead: &f{receiver}"
- "&8&m--------------------------------------"
# Short state words. Each is substituted into a {linked} or {result} slot of the messages above,
# or into a PlaceholderAPI value, so a restyle here applies everywhere at once.
status:
# A player whose Discord account is linked.
linked: "&aLinked"
# A player whose Discord account is not linked.
not-linked: "&cNot linked"
# A player who gets the KeyAll.
receives: "&aReceives"
# A player left out of the KeyAll by the per-IP limit.
skipped: "&cSkipped"
# A player who gets the KeyAll without taking a per-IP slot (snkeyall.bypass.iplimit).
bypass: "&bReceives (IP limit bypass)"
# Shown where a value is missing: no upcoming KeyAll, an unknown IP, no other receiver.
# Uncolored so it inherits the color of the line it lands in.
none: "None"
# Unit suffixes of every time shown ("1d 2h 5m 30s"): the countdown, the command views and the
# PlaceholderAPI output. at-format is the Java DateTimeFormatter pattern of {at}, rendered in
# the zone of config.yml timezone.
time:
days: "d"
hours: "h"
minutes: "m"
seconds: "s"
at-format: "EEE d MMM HH:mm"