Configuration
On this page(9)
SnProxyUtility ships with the following YAML files in plugins/snproxyutility/. config.yml and messages.yml are written on the first boot. The file of every other module is written the first time that module is enabled.
| File | Mode | Purpose |
|---|---|---|
config.yml | managed | Module switches, command aliases, update-configs, debug, api-events. |
messages.yml | managed | Every message the plugin sends and the state words. |
restart.yml | managed | Cron schedules, warnings, timezone. |
motd.yml | managed | MOTD lines, player counts, hover, version text, countdowns. |
queue.yml | managed | The whole queue: global behavior, your priority tiers and queued servers, and the paused queues (state, written by the plugin). |
hub.yml | managed | The lobbies of /hub and the order they are tried in. |
blockcommands.yml | seedOnly | Your command blocker groups. |
maintenance.yml | managed | Kick of online players, the server list version text and MOTD shown during maintenance, and whether maintenance is on plus its whitelist (state, written by the plugin). |
stats.yml | managed | Player stats: history retention, version grouping, your address groups (hosts.groups), the country database and the web page. |
stats/players.tsv, stats/days.tsv | data | The stats history, written by the plugin only. Never merged; do not edit it while the proxy runs. |
Managed files get new keys merged on boot and on /snproxy reload while update-configs is true. Your values are kept. A merge that adds keys rewrites the file without its comments and saves the replaced text beside it as <file>.bak. SeedOnly files are written once and never merged again.
queue.yml and maintenance.yml also hold a state: block at the bottom that the plugin writes itself (the paused queues; whether maintenance is on and its whitelist). The plugin rewrites only that block, as text, so your comments and the rest of the file are never touched. Do not edit it while the proxy runs. priorities and servers in queue.yml ship without active entries, so a tier or server you delete is not merged back; the same goes for hosts.groups in stats.yml. A queue.yml or maintenance.yml that no longer parses is left as you wrote it and the previous settings stay in force.
config.yml
# ============================================================
# SnProxyUtility - main configuration
# Managed by SnProxyUtility: keys added by a plugin update are merged
# into this file on boot and on /snproxy reload; your values are kept.
# Set update-configs: false to freeze every managed file except this one
# (config.yml is always merged).
#
# Each module has its own file:
# restart.yml - scheduled proxy restarts
# motd.yml - server list MOTD
# blockcommands.yml - command blocker groups
# queue.yml - the queue: behaviour, priority tiers and queued servers
# hub.yml - the lobbies /hub sends players to
# maintenance.yml - proxy-wide maintenance
# stats.yml - player stats: versions, Bedrock, addresses, countries
# messages.yml - every message the plugin sends
# ============================================================
# Merge new keys from plugin updates into the managed yml files.
update-configs: true
# Extra console logging (queue decisions, module reloads). Keep false in production.
debug: false
# ------------------------------------------------------------
# Public developer API.
# ------------------------------------------------------------
# Public developer API events (QueueJoinEvent, QueueLeaveEvent). When false,
# no API event is dispatched (zero cost) and a cancellable event can never
# block a queue join. The query API stays available either way.
api-events:
enabled: true
# ------------------------------------------------------------
# Modules - turn a whole feature on or off. A disabled module
# registers no listener, no command and no task.
# Changing a switch needs /snproxy reload or a proxy restart.
# ------------------------------------------------------------
modules:
# Cron-scheduled proxy restarts with countdown warnings (restart.yml).
restart: true
# Server list MOTD, player counts, hover and countdowns (motd.yml).
motd: true
# Per-group command whitelist that also hides tab completion (blockcommands.yml).
command-blocker: false
# Lane-based server queue (queue.yml).
queue: true
# /hub: sends the player to a lobby, the least busy first by default (hub.yml).
hub: true
# /find <player>: shows which server an online player is on.
find: true
# Proxy-wide maintenance: only whitelisted players can join (maintenance.yml).
maintenance: false
# Player stats: versions, Java/Bedrock, connect addresses and countries (stats.yml).
stats: true
# ------------------------------------------------------------
# Command blocker - which commands blockcommands.yml filters.
# ------------------------------------------------------------
command-blocker:
# proxy: only commands registered on the proxy (/server, /glist, /velocity ...) are hidden from tab
# completion and refused; the commands of the backend servers are left alone, so each server
# keeps handling its own commands and permissions.
# all: every command is filtered, proxy and backend alike (anything the group does not list is
# hidden and refused).
scope: proxy
# ------------------------------------------------------------
# Commands - extra names for each command. The list replaces
# the shipped one and an empty list removes every alias.
# Changing an alias needs a proxy restart.
# ------------------------------------------------------------
commands:
admin:
# Aliases of /snproxy.
aliases: [spu]
queue:
# Aliases of /queue.
aliases: [joinqueue, joinq, move]
leave-queue:
# Aliases of /leavequeue.
aliases: [lq, leaveq]
hub:
# Aliases of /hub.
aliases: [lobby]
find:
# Aliases of /find.
aliases: []
maintenance:
# Aliases of /maintenance.
aliases: [mantenimiento]messages.yml
# ============================================================
# SnProxyUtility - messages
# Managed by SnProxyUtility: keys added by a plugin update are merged
# into this file on boot and on /snproxy reload; your values are kept.
# Set update-configs: false in config.yml to freeze this file instead.
#
# Every line accepts & codes, &#RRGGBB and MiniMessage tags.
# {name} tokens are filled by the plugin; keep them in your text.
# A single line is sent with the prefix, unless it starts with [noprefix].
# A list sends each line as written, without the prefix.
# An empty string "" sends nothing.
# ============================================================
# Prepended to every single-line chat message.
prefix: "₢f2&lSnProxy &8» &7"
# ------------------------------------------------------------
# General - shared by every command.
# ------------------------------------------------------------
general:
# Sender lacks the permission of the command.
no-permission: "&cYou do not have permission to do that."
# A player-only command was run from the console.
player-only: "&cOnly players can use this command."
# {value} is the text the sender typed.
unknown-subcommand: "&cUnknown subcommand: &e{value}&c. Use &e/snproxy help&c."
# {usage} is the command syntax.
usage: "&cUsage: &e{usage}"
# /snproxy reload finished.
reload-done: "&aConfiguration reloaded."
# /snproxy reload finished but a module failed to disable, reload or enable (the console has the
# error). {modules} is the comma-separated list of module ids from modules.<id> in config.yml.
reload-failed: "&cConfiguration reloaded, but these modules failed: &e{modules}&c. Check the console."
# {module} is the module id from modules.<id> in config.yml.
module-disabled: "&cThe &e{module} &cmodule is disabled in config.yml."
# {server} is the server name the sender typed.
server-not-found: "&cNo server named &e{server}&c exists."
# ------------------------------------------------------------
# Help - lines of /snproxy help; each is shown only to senders allowed to run it.
# ------------------------------------------------------------
help:
# First line of the help.
header: "[noprefix]&8&m----------&r ₢f2&lSnProxy &8&m----------"
# Last line of the help.
footer: "[noprefix]&8&m----------------------------------"
# /snproxy reload
admin-reload: "[noprefix]₢f2/snproxy reload &7Reload every config file and module."
# /snproxy restart next
admin-restart-next: "[noprefix]₢f2/snproxy restart next &7Show when the next restart happens."
# /snproxy restart now
admin-restart-now: "[noprefix]₢f2/snproxy restart now &7Start the restart countdown now."
# /snproxy queue pause <server>
admin-queue-pause: "[noprefix]₢f2/snproxy queue pause <server> &7Stop sending players from a queue."
# /snproxy queue resume <server>
admin-queue-resume: "[noprefix]₢f2/snproxy queue resume <server> &7Resume sending players from a queue."
# /snproxy queue info <server>
admin-queue-info: "[noprefix]₢f2/snproxy queue info <server> &7Show the status, lanes and size of a queue."
# /snproxy queue send <player|server> <server>
admin-queue-send: "[noprefix]₢f2/snproxy queue send <player|server> <server> &7Send a player, or everyone on a server, past the queue."
# /queue <server>
queue-join: "[noprefix]₢f2/queue <server> &7Join the queue of a server."
# /leavequeue
queue-leave: "[noprefix]₢f2/leavequeue &7Leave your current queue."
# /hub
hub: "[noprefix]₢f2/hub &7Go to a lobby."
# /find <player>
find: "[noprefix]₢f2/find <player> &7Show which server a player is on."
# /maintenance
maintenance: "[noprefix]₢f2/maintenance <on|off|status|add|remove|list> &7Proxy-wide maintenance and its whitelist."
# /snproxy stats [online|today|week|month]
admin-stats: "[noprefix]₢f2/snproxy stats [online|today|week|month] &7Versions, Bedrock, addresses and countries."
# /snproxy stats web
admin-stats-web: "[noprefix]₢f2/snproxy stats web &7Get a link to the stats page."
# ------------------------------------------------------------
# Status - state words spliced into {status} placeholders.
# ------------------------------------------------------------
status:
# The server accepts players.
open: "&aOpen"
# The server only lets whitelisted players in.
whitelist: "&eWhitelist"
# The server has no free slot.
full: "&cFull"
# The server has not answered pings for restart-grace-seconds or more (queue.yml).
offline: "&7Offline"
# The server stopped answering pings less than restart-grace-seconds ago, so it most likely restarts.
restarting: "&eRestarting"
# An admin stopped the queue with /snproxy queue pause.
paused: "&6Paused"
# Maintenance is on (/maintenance status).
enabled: "&cOn"
# Maintenance is off (/maintenance status).
disabled: "&aOff"
# A player on the Java edition (stats).
java: "&aJava"
# A player on the Bedrock edition, through Geyser and Floodgate (stats).
bedrock: "&bBedrock"
# A player who connected by typing an IP address instead of a domain (stats).
direct-ip: "&7Direct IP"
# Everything outside the named rows: an address past hosts.max-raw-hosts, or any unmatched
# address with hosts.unmatched: other (stats).
other: "&7Other"
# A value the proxy does not know: no country found, no address sent, no Bedrock device (stats).
unknown: "&8Unknown"
# ------------------------------------------------------------
# Queue - /queue, /leavequeue and the queue engine.
# {server} is the display-name of the queued server (queue.yml).
# {lane} and {position} locate a player: position 1 of each lane
# leaves with the next batch. {total} counts the whole queue.
# ------------------------------------------------------------
queue:
# The player joined a queue.
joined: "&7You joined the queue for {server}&7: lane &f{lane}&7, position &f{position}&7, &f{total} &7waiting."
# The player left their previous queue to join this one.
switched: "&7You switched to the queue for {server}&7: lane &f{lane}&7, position &f{position}&7, &f{total} &7waiting."
# /leavequeue took the player out of a queue.
left: "&7You left the queue for {server}&7."
# /leavequeue while not in any queue.
not-in-queue: "&cYou are not in any queue."
# /queue for the queue the player already waits in.
already-in-queue: "&cYou are already in the queue for {server}&c."
# /queue for a server without a queue. {server} is the name the player typed.
not-queued-server: "&cThe server &e{server} &chas no queue."
# A player with the bypass permission skips the queue of an open server.
bypassed: "&aSkipping the queue, sending you to {server}&a."
# /queue for the server the player is already on.
already-connected: "&cYou are already connected to {server}&c."
# The player's turn came: the connection to the server starts.
sending: "&aSending you to {server}&a..."
# The player failed to join max-attempts times in a row and now waits at the end of the queue.
# {reason} is the server's last rejection reason (a ban, a custom deny), or no-reason when it gave none.
moved-to-back: "&eYou could not join {server} &e(&7{reason}&e) and were moved to the back of the queue."
# {reason} of moved-to-back when the server gave none.
no-reason: "no reason given"
# Shown every second while waiting. {status} is a word of the status section.
action-bar: "₢f2{server} &8| &7Lane &f{lane} &8| &7Position &f{position} &8| &f{total} &7waiting &8| {status}"
# Sent to every queued player when an admin pauses their queue.
paused-notice: "&6The queue for {server} &6was paused by an admin."
# Sent to every queued player when an admin resumes their queue.
resumed-notice: "&aThe queue for {server} &ais moving again."
# Sent to every queued player when their server is removed from queue.yml by a reload.
removed: "&eThe queue for {server} &ewas closed; you are no longer queued."
# /queue typed without exactly one server name. {command} is the label the player typed.
usage: "&cUsage: &e/{command} <server>"
# A player kicked by a restarting or lost queued server was put back in its queue, ahead of normal entries.
auto-reconnect: "&eYou left {server} &ebecause it went down; you were queued to rejoin it: lane &f{lane}&e, position &f{position}&e, &f{total} &ewaiting."
# Auto-reconnect skipped: the server went down auto-reconnect.max-per-player times within auto-reconnect.window-seconds.
auto-reconnect-limit: "&e{server} &ewent down several times in a row, so you were not queued again automatically. Join its queue again when you are ready."
# ------------------------------------------------------------
# Hub - /hub and its aliases (hub.yml).
# {server} is the lobby name from velocity.toml.
# ------------------------------------------------------------
hub:
# The connection to a lobby starts; sent again for each lobby tried after one refused.
sending: "&7Sending you to &f{server}&7..."
# /hub while the player already is on one of the lobbies.
already-connected: "&cYou are already in a lobby (&e{server}&c)."
# Every lobby refused the player, or none of the hub.yml servers exists.
unavailable: "&cNo lobby is available right now. Try again in a moment."
# ------------------------------------------------------------
# Find - /find <player>.
# {player} is the player's name, {server} the server they are on.
# ------------------------------------------------------------
find:
# The player was found.
result: "&e{player} &7is on &f{server}&7."
# The player is online but not on a server yet (still logging in or switching).
connecting: "&e{player} &7is online but not on a server yet."
# Nobody online has that name. {player} is the name typed.
not-online: "&cNo online player named &e{player}&c."
# /find typed without exactly one name. {command} is the label typed.
usage: "&cUsage: &e/{command} <player>"
# ------------------------------------------------------------
# Blocker - command blocker groups (blockcommands.yml).
# ------------------------------------------------------------
blocker:
# A player ran a command their group may not use. {command} is the command they typed.
blocked: "&cYou cannot use &e/{command}&c."
# ------------------------------------------------------------
# Maintenance - /maintenance and the join check (maintenance.yml).
# {player} is a player name, {uuid} their UUID, {status} a word of
# the status section (enabled or disabled).
# ------------------------------------------------------------
maintenance:
# /maintenance on turned maintenance on.
enabled: "&7Maintenance is now &con&7."
# /maintenance off turned maintenance off.
disabled: "&7Maintenance is now &aoff&7."
# /maintenance on while it already is on.
already-enabled: "&cMaintenance is already on."
# /maintenance off while it already is off.
already-disabled: "&cMaintenance is already off."
# /maintenance status. {count} is the number of whitelisted players.
status: "&7Maintenance: {status}&7, &f{count} &7whitelisted player(s)."
# /maintenance add <player> whitelisted the player.
added: "&e{player} &7can now join during maintenance."
# /maintenance add <player> for a player already whitelisted.
already-added: "&e{player} &cis already whitelisted."
# /maintenance remove <player> took the player off the whitelist.
removed: "&e{player} &7can no longer join during maintenance."
# /maintenance remove <player> for a name or UUID not on the whitelist.
not-found: "&e{player} &cis not whitelisted."
# /maintenance add <player> for a player who is not online: whitelisted by name, since the proxy
# cannot know their UUID. Whoever joins with that name has access.
added-by-name: "&e{player} &7was whitelisted by name; they can join during maintenance."
# /maintenance add <player> with a name that is not a valid player name.
invalid-name: "&e{player} &cis not a valid player name."
# First line of /maintenance list.
list-header: "&7Whitelisted players (&f{count}&7):"
# One line per whitelisted player, sent without the prefix.
list-entry: "[noprefix]&8- &f{player} &8({uuid})"
# One line per player whitelisted by name only, sent without the prefix.
list-entry-name: "[noprefix]&8- &f{player} &8(by name)"
# /maintenance list with nobody whitelisted.
list-empty: "&7Nobody is whitelisted. Use &e/maintenance add <player>&7."
# /maintenance without a valid action. {command} is the label typed.
usage: "&cUsage: &e/{command} <on|off|status|add <player>|remove <player>|list>"
# Disconnect screen of a player who joins, or is online, while maintenance is on; one line per entry, no prefix.
kick:
- "&cThe server is under maintenance."
- "&7Please come back later."
# ------------------------------------------------------------
# Stats - /snproxy stats and its web page (stats.yml).
# {window} is a word of stats.window, {dimension} one of
# stats.dimension, {label} a version, address, country or a word
# of the status section.
# ------------------------------------------------------------
stats:
# First line of /snproxy stats. {total} is the number of players in the window.
header: "[noprefix]&8&m--------&r ₢f2&lStats &8- &f{window} &8(&f{total} &7players&8) &8&m--------"
# Title of each section.
section: "[noprefix]₢f2{dimension}"
# One row of a section. {count} is the number of players, {percent} their share of the section.
row: "[noprefix] &8- &f{label} &7{count} &8({percent}%)"
# Last row of a section that has more rows than chat.top in stats.yml. {count} is the rows left out.
more: "[noprefix] &8- &7{count} more on the web page"
# A section with no player in it.
empty: "[noprefix] &8- &7Nobody yet."
# Last line of /snproxy stats.
footer: "[noprefix]&8&m----------------------------------"
# /snproxy stats web. {url} is the link, {minutes} how long it works.
web-link: "&7Stats page, valid for {minutes} min: <click:open_url:'{url}'><hover:show_text:'Open the page'>₢f2&n{url}</hover></click>"
# /snproxy stats web while web.enabled is false in stats.yml.
web-disabled: "&cThe stats page is off. Set &eweb.enabled: true &cin stats.yml and run &e/snproxy reload&c."
# /snproxy stats web while the page could not start (port in use, for example). The console has the error.
web-unavailable: "&cThe stats page could not start. Check the console."
# /snproxy stats web while web.max-links links are working.
web-full: "&cToo many stats links are open. Wait for one to expire."
# Names of the time windows.
window:
online: "Online now"
today: "Today"
week: "Last 7 days"
month: "Last 30 days"
# Names of the sections.
dimension:
versions: "Versions (Java)"
clients: "Java and Bedrock"
devices: "Bedrock devices"
hosts: "Addresses"
countries: "Countries"
# Texts of the web page (colors are removed there).
web:
title: "SnProxy stats"
# {date} is when the page was built.
generated: "Built {date}"
# The pill at the top right. {count} is the number of players online now (shown bold).
online-now: "{count} online now"
# The four figures of each window.
kpi-players: "Players"
kpi-bedrock: "On Bedrock"
# Under kpi-bedrock. {count} players of the {total} counted play on Bedrock.
kpi-bedrock-sub: "{count} of {total} players"
kpi-top-host: "Top address"
kpi-top-country: "Top country"
# Under kpi-top-host and kpi-top-country. {percent} is the share of the first row.
kpi-share: "{percent}% of players"
# kpi-top-host or kpi-top-country while nobody is counted.
kpi-none: "No data yet"
# Header of the daily chart and its three lines.
daily: "Daily players"
# Under the chart title. {days} is the number of days the chart shows.
daily-hint: "Last {days} days"
# The two figures at the top right of the chart.
peak-today: "Peak today"
joins-today: "Joins today"
unique: "Players"
joins: "Joins"
peak: "Peak online"
# Table headers.
name: "Name"
players: "Players"
share: "Share"
# A section with no player in it.
empty: "Nobody yet."
# Folds the rows of a section past the eighth. {count} is the rows folded.
more: "Show {count} more"
# Required by the DB-IP license.
attribution: "IP Geolocation by DB-IP"
# Shown for a link that expired or was never given.
expired: "This link expired. Run /snproxy stats web again for a new one."
# ------------------------------------------------------------
# Restart - scheduled and manual proxy restarts (restart.yml).
# ------------------------------------------------------------
restart:
# Broadcast to every player at each warning second. {time} is the time left.
warning: "&eThe proxy restarts in &6{time}&e."
# Broadcast to every player when a countdown they already saw is cancelled, because /snproxy reload
# found keep-countdown-on-reload: false in restart.yml, or the restart module was switched off.
cancelled: "&aThe proxy restart was cancelled."
# Disconnect screen shown to every player when the proxy shuts down; one line per list entry, no prefix.
kick:
- "₢f2&lSnProxy"
- "&7The proxy is restarting. Please reconnect in a few minutes."
# /snproxy restart next. {date} is the restart date, {remaining} the time left.
next: "&7Next restart: &f{date} &8(&7in {remaining}&8)"
# /snproxy restart next while no restart is planned.
none-scheduled: "&cNo restart is scheduled."
# /snproxy restart now. {time} is the length of the countdown that just started.
started: "&eRestart countdown started. The proxy restarts in &6{time}&e."
# Units of the {time} and {remaining} placeholders. {value} is the amount; the singular form
# is used for exactly 1.
time:
day: "{value} day"
days: "{value} days"
hour: "{value} hour"
hours: "{value} hours"
minute: "{value} minute"
minutes: "{value} minutes"
second: "{value} second"
seconds: "{value} seconds"
# Text placed between two units, for example "1 minute 30 seconds".
separator: " "
# ------------------------------------------------------------
# Admin - /snproxy queue subcommands and usage hints.
# {server} is the display-name of the queued server (queue.yml).
# /snproxy restart reuses the restart section above.
# ------------------------------------------------------------
admin:
# /snproxy queue pause <server> stopped the queue.
paused: "&7The queue for {server} &7is now &6paused&7."
# /snproxy queue resume <server> restarted the queue.
resumed: "&7The queue for {server} &7is now &aresumed&7."
# /snproxy queue info <server>. One line per entry, sent without the prefix.
# {status} is a word of the status section, {lanes} the lane count, {size} the players waiting.
info:
- "&8&m--------&r ₢f2&lQueue &8- &r{server} &8&m--------"
- "&7Status: {status}"
- "&7Lanes: &f{lanes}"
- "&7Waiting: &f{size}"
# Syntax shown by general.usage when /snproxy restart gets no action.
usage-restart: "/snproxy restart <next|now>"
# Syntax shown by general.usage when /snproxy queue gets no action or no server.
usage-queue: "/snproxy queue <pause|resume|info> <server> or /snproxy queue send <player|server> <server>"
# Syntax shown by general.usage when /snproxy queue send lacks the source or the target.
usage-queue-send: "/snproxy queue send <player|server> <server>"
# Syntax shown by general.usage when /snproxy stats gets an unknown window.
usage-stats: "/snproxy stats [online|today|week|month|web]"
# /snproxy queue send started. {count} players are on their way to {server}.
send-started: "&7Sending &f{count} &7player(s) to {server}&7..."
# /snproxy queue send finished. {joined} got in, {failed} were turned away by the server.
send-done: "&7Send to {server} &7finished: &a{joined} &7joined, &c{failed} &7could not join."
# The one player sent with /snproxy queue send was turned away. {reason} is the server's reason.
send-failed: "&e{player} &ccould not join {server}&c: &7{reason}"
# {reason} of send-failed when the server gave none.
send-no-reason: "no reason given"
# /snproxy queue send found no server and no online player named {source}.
send-unknown-source: "&cNo server or online player named &e{source}&c."
# /snproxy queue send had nobody to move: {source} is empty or already on {server}.
send-nobody: "&cNobody to send from &e{source}&c: it is empty or already on {server}&c."restart.yml
# ============================================================
# SnProxyUtility - restart module
# Managed by SnProxyUtility: keys added by a plugin update are merged
# into this file on boot and on /snproxy reload; your values are kept.
# Set update-configs: false in config.yml to freeze this file instead.
#
# The module is switched by modules.restart in config.yml. The proxy
# only shuts down: your host or start script must start it again.
# ============================================================
# Restart schedules as cron expressions: minute hour day-of-month month day-of-week.
# minute 0-59, hour 0-23, day-of-month 1-31, month 1-12, day-of-week 0-7 (0 and 7 are Sunday)
# * any value , list (1,3,5) - range (1-5) / step (*/5 is every 5 units)
# Examples:
# "0 3 * * *" every day at 03:00
# "0 3 * * 1" every Monday at 03:00
# "0 3,15 * * *" every day at 03:00 and 15:00
# "0 */6 * * *" every 6 hours
# "30 4 * * 0,6" Saturdays and Sundays at 04:30
# With several entries the nearest upcoming one wins. An invalid entry is skipped with a
# warning in the console. An empty list disables automatic restarts: the module ships with none.
# To restart every day at 03:00, replace the line below with these two:
# schedules:
# - "0 3 * * *"
schedules: []
# Seconds before the restart at which every player is warned; one broadcast per value.
# A restart planned closer than the largest value starts its countdown at the remaining time.
warnings:
- 300
- 60
- 30
- 10
- 5
- 3
- 2
- 1
# Time zone the cron expressions are evaluated in, for example America/Argentina/Buenos_Aires.
# Blank uses the time zone of the machine the proxy runs on.
timezone: ""
# Java date pattern of the {date} placeholder in the restart messages. VV prints the zone id.
date-format: "yyyy-MM-dd HH:mm (VV)"
# /snproxy restart now starts its countdown at the largest warning not above this many seconds,
# or restarts at once when no warning fits. 0 always restarts at once.
now-max-seconds: 10
# What /snproxy reload does to a countdown the players already saw (at least one warning was sent):
# true - the countdown goes on untouched and the new settings apply from the next restart;
# false - it is cancelled and every player gets restart.cancelled from messages.yml. A cancelled
# restart is planned again from the schedules, so this is also how to stop one.
# A plan that has not warned anyone yet is always re-planned silently.
keep-countdown-on-reload: truemotd.yml
# ============================================================
# SnProxyUtility - server list MOTD (module: motd)
# Managed by SnProxyUtility: keys added by a plugin update are merged
# into this file on boot and on /snproxy reload; your values are kept.
# Set update-configs: false in config.yml to freeze this file instead.
#
# Text accepts & codes, &#RRGGBB hex and MiniMessage tags, mixed freely.
# Examples: ₢f2&lBold hex, <gradient:#8354f2:#54c8f2>text</gradient>, <red>
#
# Placeholders for the MOTD lines, the hover lines and the version name:
# %online% online count after the players.online mode (REAL and OFFSET also
# include players other plugins add through the SnProxyUtility API)
# %max% max count after the players.max mode
# %real_online% the proxy's own online count, ignores every mode
# %countdown_<name>% the countdown of that name from the countdowns section
# ============================================================
# ------------------------------------------------------------
# MOTD - the two lines shown in the server list.
# ------------------------------------------------------------
motd:
# false leaves the MOTD of the proxy untouched.
enabled: true
# First line of the MOTD.
line1: "₢f2&lMy Network"
# Second line of the MOTD.
line2: "&7%online% players online"
# ------------------------------------------------------------
# Players - the counts and the tooltip of the player count.
# ------------------------------------------------------------
players:
online:
# REAL shows the actual count, STATIC always shows value, OFFSET shows the actual count plus value.
mode: REAL
# The count shown by STATIC, or the number added to the actual count by OFFSET (may be negative).
value: 0
max:
# REAL keeps the max the proxy reports, STATIC always shows value.
mode: REAL
# The max shown by STATIC.
value: 500
hover:
# false leaves the player sample of the proxy untouched.
enabled: true
# One entry per line of the tooltip; [] shows an empty tooltip. Hex and gradient colors need a 1.16+ client.
lines:
- "₢f2&lMy Network"
- "&7Players online: &f%online%&7/&f%max%"
# ------------------------------------------------------------
# Version - the version text shown in the server list.
# ------------------------------------------------------------
version:
# true replaces the version name and protocol reported to the client.
enabled: false
# The version text. Hex and gradient colors need a 1.16+ client.
name: "&cMaintenance"
# The protocol number reported. -1 shows name where the player count normally is, marked as
# incompatible, while every client can still join.
protocol: -1
# ------------------------------------------------------------
# Countdown defaults - inherited by every countdown below that does not set its own.
# ------------------------------------------------------------
countdown-defaults:
# IANA timezone id the date of a countdown is read in.
timezone: "UTC"
# %value% is replaced with the remaining amount.
formats:
# Shown while 2 or more whole days remain.
days: "%value% days"
# Shown while exactly 1 whole day remains.
day-singular: "1 day"
# Shown while 2 or more whole hours remain (less than a day).
hours: "%value% hours"
# Shown while exactly 1 whole hour remains.
hour-singular: "1 hour"
# Shown while 2 or more minutes remain (less than an hour, rounded up).
minutes: "%value% minutes"
# Shown during the final minute.
minute-singular: "1 minute"
# Shown once the date has passed.
expired: "Available now"
# ------------------------------------------------------------
# Countdowns - each entry becomes the placeholder %countdown_<name>%.
# The unit follows the remaining time: days, then hours, then minutes, then expired.
# Every entry needs a date; timezone and each format fall back to countdown-defaults.
# To add one, remove the leading # of the example lines and edit them:
# ------------------------------------------------------------
countdowns:
# opening:
# # Target date, written yyyy-MM-dd HH:mm:ss and kept in quotes.
# date: "2030-01-01 18:00:00"
# # Overrides countdown-defaults.timezone.
# timezone: "America/Argentina/Buenos_Aires"
# # Overrides any of the countdown-defaults.formats keys.
# formats:
# days: "%value% DAYS"
# expired: "OPEN NOW"queue.yml
# ============================================================
# SnProxyUtility - queue
# Managed by SnProxyUtility: keys added by a plugin update are merged
# into this file on boot and on /snproxy reload; your values are kept.
# Set update-configs: false in config.yml to freeze this file instead.
#
# Everything about the queue lives in this one file: the global
# behaviour, the priority tiers (priorities:), the queued servers
# (servers:, where a server can override lanes, send-interval-ticks
# and max-attempts) and, at the bottom, the state: block that the
# plugin writes itself. Changes apply on /snproxy reload.
# ============================================================
# ------------------------------------------------------------
# Sending - how players leave the queue.
# ------------------------------------------------------------
# Players sent together in each batch; the queue is shown as this many lanes.
lanes: 10
# Ticks between two batches (1 tick = 50 ms, so 5 sends a batch every 250 ms).
send-interval-ticks: 5
# Failed joins in a row before a player is moved to the back of the queue.
max-attempts: 3
# Seconds a player waits after a failed join before they are tried again; doubles with each failure.
# The player keeps their place meanwhile and the players behind them are sent.
retry-delay-seconds: 2
# Longest wait in seconds between two join attempts of one player.
retry-delay-max-seconds: 30
# ------------------------------------------------------------
# Server status - when sending waits, with no penalty for anyone.
# ------------------------------------------------------------
# Seconds between status pings of each queued server; no answer within this time counts as offline.
ping-interval-seconds: 3
# Sends no more players than the free slots (max - online) of the last ping until the next one, so a
# burst never puts more players on a server than it has room for. Turn it off for a backend whose
# ping shows a fake max player count.
limit-to-free-slots: true
# Seconds a server that stops answering pings reads Restarting before it reads Offline, so a restart is
# not mistaken for a server that is really down. The queue sends nobody to it in either state. 0 turns it
# off (Offline at once).
restart-grace-seconds: 180
# Seconds between single-player join attempts while a server is whitelisted. Each attempt goes to
# the next player in the queue, so a player who is not whitelisted never holds up the others.
whitelist-probe-seconds: 2
# A rejection whose reason contains one of these words marks the server as whitelisted (case-insensitive).
whitelist-keywords:
- whitelist
- whitelisted
# A rejection whose reason contains one of these words marks the server as full until the next ping.
full-keywords:
- full
# ------------------------------------------------------------
# Entry points - how players get into a queue.
# ------------------------------------------------------------
# Queue players who connect straight to a queued server (/server, lobby menus) instead of connecting them.
intercept-direct-connect: true
# Players that an admin moves with the /send command of Velocity (/send <player|server|all|current> <server>)
# connect to a queued server directly, past its queue, its pause, its whitelist and its full state, so staff
# can place someone without giving and taking back a permission. Only for senders holding velocity.command.send.
# false queues those players like any other direct connection.
bypass-send-command: true
# Re-queues players kicked from a queued server because it restarts or closes, ahead of normal players.
auto-reconnect:
# Turns auto-reconnect on or off.
enabled: true
# A kick whose reason contains one of these words triggers it (case-insensitive). Such a kick also
# stops sending players to that server until its next ping, even with auto-reconnect off.
kick-keywords:
- restart
- restarting
- "server closed"
- "shutting down"
# Also triggers it when the connection to the server drops without a kick reason.
connection-lost: true
# Most auto-reconnects of one player within window-seconds; past it they stay where they landed.
max-per-player: 3
# Seconds the max-per-player count covers.
window-seconds: 600
# ------------------------------------------------------------
# Feedback - what queued players see.
# ------------------------------------------------------------
# Action bar shown to players while they wait (queue.action-bar in messages.yml).
action-bar:
# Shows each queued player their lane, position and the server status every second.
enabled: true
# ------------------------------------------------------------
# Priorities - each entry is a tier. A player waits ahead of every
# player with a lower weight; equal weights keep join order. A player
# holding several tiers gets the highest weight; no tier = weight 0.
# When permission is left out it is snproxyutility.queue.priority.<tier>.
# No tier is active by default: remove the leading # of the examples
# below, or add your own, under the priorities: line.
# ------------------------------------------------------------
priorities:
# staff:
# # Permission that grants this tier.
# permission: snproxyutility.queue.priority.staff
# # Priority weight; higher waits ahead.
# weight: 100
# vip:
# permission: snproxyutility.queue.priority.vip
# weight: 10
# ------------------------------------------------------------
# Servers - each entry is a server name from velocity.toml that gets
# a queue. Every key is optional and falls back to the global values
# above; a name Velocity does not know is skipped with a warning.
# With no entry, no server is queued and no connection is intercepted.
# Remove the leading # of the example to queue "skyblock".
# ------------------------------------------------------------
servers:
# skyblock:
# # Name shown in queue messages and on the action bar (& codes allowed).
# display-name: "₢f2SkyBlock"
# # Players sent per batch and lanes shown; overrides lanes above.
# lanes: 10
# # Ticks between batches (1 tick = 50 ms); overrides send-interval-ticks above.
# send-interval-ticks: 5
# # Failed joins in a row before moving to the back; overrides max-attempts above.
# max-attempts: 3
# ------------------------------------------------------------
# State - written by the plugin, not meant to be edited while the
# proxy runs. The queues paused with /snproxy queue pause stay
# paused across proxy restarts until /snproxy queue resume <server>.
# ------------------------------------------------------------
state:
paused: []hub.yml
# ============================================================
# SnProxyUtility - /hub (module: hub)
# Managed by SnProxyUtility: keys added by a plugin update are merged
# into this file on boot and on /snproxy reload; your values are kept.
# Set update-configs: false in config.yml to freeze this file instead.
#
# /hub (and its aliases, /lobby by default) sends the player to a
# lobby. When a lobby does not let them in (offline, full, a plugin
# says no), the next one is tried. A player who already is on one of
# these servers is told so and stays. A server with a queue in
# queue.yml is never a /hub target.
# ============================================================
# Lobby servers, as named under [servers] in velocity.toml, for example:
# servers: [lobby1, lobby2]
# An empty list uses the "try" list of velocity.toml.
servers: []
# Order in which /hub tries the lobbies:
# least-players - the lobby with the fewest players first, so players spread out
# in-order - the servers list from top to bottom
order: least-playersmaintenance.yml
# ============================================================
# SnProxyUtility - maintenance (module: maintenance)
# Managed by SnProxyUtility: keys added by a plugin update are merged
# into this file on boot and on /snproxy reload; your values are kept.
# Set update-configs: false in config.yml to freeze this file instead.
#
# /maintenance on|off switches proxy-wide maintenance. While it is on,
# only whitelisted players (/maintenance add <player>) and holders of
# snproxyutility.maintenance.bypass can join. The on/off state and the
# whitelist live in the state: block at the bottom of this file,
# written by the plugin, so they survive a proxy restart.
#
# Text accepts & codes, &#RRGGBB hex and MiniMessage tags, mixed freely.
# The kick screen is maintenance.kick in messages.yml.
# ============================================================
# Kicks every online player without access the moment maintenance is turned on.
kick-online-players: true
# ------------------------------------------------------------
# Ping - what the server list shows while maintenance is on.
# Applied after the motd module, so it wins over motd.yml.
# ------------------------------------------------------------
ping:
version:
# true replaces the version text of the ping while maintenance is on.
enabled: true
# Shown where the player count normally is. Hex and gradient colors need a 1.16+ client.
name: "&cMaintenance"
# The protocol number reported. -1 always shows name, marked as incompatible.
protocol: -1
motd:
# true replaces the MOTD lines while maintenance is on.
enabled: false
# First line of the MOTD.
line1: "₢f2&lMy Network"
# Second line of the MOTD.
line2: "&cUnder maintenance, we will be back soon."
# ------------------------------------------------------------
# State - written by the plugin, not meant to be edited while the
# proxy runs. enabled is the state of /maintenance on|off; players is
# the whitelist (/maintenance add|remove): players as "<uuid>": "<name>"
# and players added while offline in names (whitelisted by name).
# ------------------------------------------------------------
state:
enabled: false
players: {}
names: []stats.yml
# ============================================================
# SnProxyUtility - player stats (module: stats)
# Managed by SnProxyUtility: keys added by a plugin update are merged
# into this file on boot and on /snproxy reload; your values are kept.
# Set update-configs: false in config.yml to freeze this file instead.
#
# Every login records the player's Minecraft version, Java or Bedrock
# (and the Bedrock device), the address they typed to connect (the
# host, for example play.example.com) and their country. IP addresses
# are never stored: the country is looked up in memory and only the
# country is kept.
#
# /snproxy stats [online|today|week|month] shows the numbers in chat;
# /snproxy stats web gives a link to a page with every number.
# The history is kept in the stats/ folder (players.tsv, days.tsv),
# written by the plugin only.
# ============================================================
history:
# Days a player stays in the history after their last login. The month window needs 30.
retention-days: 35
# How often the history is saved to disk, in minutes (only when something changed).
save-interval-minutes: 5
versions:
# How Minecraft versions are grouped:
# release - each release on its own, for example 1.21.4 (versions that share a protocol
# read as a range, for example 1.21.2-1.21.3)
# minor - by minor version, for example 1.21.x
# Bedrock players are not counted here: their Java version is the one Geyser translates to.
group-by: release
hosts:
# Names for the addresses players connect through. Each entry is a label and the addresses
# that count for it; "*.example.com" matches every subdomain of example.com (and not
# example.com itself, so list both when you want both). Ships empty: uncomment and edit the
# example, or add your own.
groups: {}
# okimc.us:
# - "okimc.us"
# - "*.okimc.us"
# okimc.net:
# - "okimc.net"
# - "*.okimc.net"
# What happens to an address that matches no group:
# raw - it is shown as the address itself (play.example.com)
# other - it is counted under the "other" word of messages.yml (status.other)
unmatched: raw
# Most distinct unmatched addresses kept as their own row (raw only). The address is typed by
# the client, so bots can send random ones: past this many, new addresses count as "other".
max-raw-hosts: 50
geoip:
# Look up the country of each player. The database is DB-IP Country Lite (CC BY 4.0,
# https://db-ip.com), downloaded by the plugin to stats/geoip/ and kept in memory.
enabled: true
# Download address of the database. {year} and {month} are filled with the current month; when
# that month is not published yet, the previous month is tried.
url: "https://download.db-ip.com/free/dbip-country-lite-{year}-{month}.mmdb.gz"
# Days before the downloaded database is replaced by a newer one.
refresh-days: 30
# Language of the country names, as the database names it (en, es, de, fr, ja, pt-BR, ru, zh-CN).
# A country without a name in that language is shown in English.
language: en
chat:
# Rows shown per section by /snproxy stats; the web page shows every row.
top: 5
web:
# Serves the page of /snproxy stats web. The proxy opens its own HTTP port for it, so on a hosted
# panel (Pterodactyl and similar) add that port as an extra allocation of the proxy first.
# Changing enabled, bind or port needs /snproxy reload.
enabled: false
# Address the page listens on. 0.0.0.0 listens on every network interface.
bind: "0.0.0.0"
# Port of the page.
port: 8765
# Address players and staff use to reach that port, without a trailing slash. The link is this
# address followed by /stats/<code>.
public-url: "http://play.example.com:8765"
# Minutes a link keeps working after /snproxy stats web gave it.
link-minutes: 30
# Most links that can be working at the same time.
max-links: 20
# Java date pattern of the "built" date shown on the page.
date-format: "yyyy-MM-dd HH:mm"
# Java date pattern of the day labels under the daily chart.
day-format: "dd/MM"blockcommands.yml
# ============================================================
# SnProxyUtility - command blocker groups
# Written once, the first time the command blocker is enabled, and never
# updated by the plugin again: this file is yours, and deleting a shipped
# group keeps it deleted. The "default" group below applies from then on.
# Changes apply with /snproxy reload.
#
# Each group lists the proxy commands its members may run AND see in tab
# completion. Anything the proxy has registered that is not listed is
# blocked and hidden; the commands of the backend servers are left alone
# (command-blocker.scope: all in config.yml filters those too). The module
# is switched on with modules.command-blocker: true in config.yml (it
# ships off).
# ============================================================
#
# HOW A GROUP IS RESOLVED
# bypass: true - the group sees and runs everything (not inherited)
# inherit: <group> - adds every command of that group (one group, not a
# list; the chain is followed and cycles are safe)
# commands: - the group's own commands: one label each, without
# a leading / and without arguments
#
# A player's group is their LuckPerms primary group, matched without regard
# to case. Without LuckPerms every player is in "default". Players with the
# snproxyutility.commandblocker.bypass permission are never filtered.
#
# A namespaced command (plugin:command) is allowed only when that exact
# label is listed: allowing "home" does not allow "essentials:home".
#
# TWO SAFETY NETS, in this order:
# 1. A group with no entry here uses the "default" group's list.
# 2. If "default" is missing or empty, EVERY command is allowed, so a
# proxy that never configured this file is never locked.
#
# An EMPTY list is treated the same as no entry: "commands: []" does NOT
# mean "this group runs nothing", it falls back to "default". To restrict a
# group to almost nothing, list one harmless command.
#
# The plugin's own commands (/snproxy, /queue, /leavequeue, /hub, /find,
# /maintenance and the aliases set in config.yml) are always allowed and
# visible, so a mistake here can never lock you out of /snproxy reload.
# /find and /maintenance still need their permission.
#
# LIMITATION: Velocity disconnects a player when a proxy plugin denies a
# command the client signed (/msg <player> <message>, /tell, /me... on
# 1.19.3+, any typed command on 1.19.1/1.19.2 with secure chat). Such a
# command is let through instead of kicking. It only happens while the
# player's tab list is stale (after /snproxy reload or a group change, until
# their next server switch or relog) and on 1.19.1/1.19.2. To close the gap,
# also block those commands on the backend.
# ============================================================
groups:
# Every player without a configured group.
default:
commands:
- help
- spawn
- lobby
- hub
- msg
- r
- tpa
- tpaccept
- tpdeny
- queue
- leavequeue
- lq
- joinqueue
# Staff: everything "default" has plus moderation commands.
mod:
inherit: default
commands:
- server
- glist
- kick
- ban
- tempban
- mute
- warn
- vanish
# Sees and runs every command.
admin:
bypass: true