22 releases, newest first.
SnProxyUtilityAPI#isMaintenanceActive(). Another plugin can now ask whether the network is in maintenance right now (the maintenance module is enabled and its mode is on). The answer follows /maintenance on|off and /snproxy reload at once.MODULE_MAINTENANCE for isModuleEnabled./snproxy stats web): a tab per window with its key figures (players, Bedrock share, top address, top country), ranked section cards with bars, the Java / Bedrock split as a donut, and long sections folded under "show more".stats.yml key web.day-format (day labels of the chart, default dd/MM) and new stats.web.* texts in messages.yml; both merge into existing files on boot.stats module (modules.stats, stats.yml). Every login records the player's Minecraft version, Java or Bedrock (and the Bedrock device), the address typed to connect (for example play.example.com) and the 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 versions, Java/Bedrock, Bedrock devices, addresses and countries for players online now or the unique players of the last 1, 7 or 30 days. Permission: snproxyutility.admin.stats./snproxy stats web gives an expiring link to a read-only page with every row and a daily chart (unique players, joins, peak online). The page is served by the proxy on its own port and ships off (web.enabled: false); on a hosted panel add the port as an extra allocation and set web.public-url first. Plain HTTP, no scripts.hosts.groups names the domains players connect through (*.example.com wildcards); unmatched addresses show as themselves up to hosts.max-raw-hosts, an IP typed instead of a domain counts as "Direct IP".stats/geoip/ and refreshed every geoip.refresh-days; geoip.enabled: false turns it off. IP Geolocation by DB-IP.stats/players.tsv and stats/days.tsv, saved every history.save-interval-minutes and on shutdown, pruned after history.retention-days (35).SnProxyUtilityAPI.enqueueVirtual(plugin, server, id, name, priority). A virtual entry is ordered, laned and counted like a player of the same priority: it shows in QueueView.size, in the total of every QueuePositionView, on the action bar numbering and in the queue messages. Nothing is connected for it: when it reaches the front of an OPEN queue it is removed (taking a batch place and a free slot) and VirtualQueueSendEvent tells its owner to spawn it. While the queue is whitelisted it only holds its place. It never delays a real player beyond its own place in line.QueueEntryHandle (state, position, cancel), cancelVirtualEntries(plugin), getVirtualQueueSize(server), VirtualQueueSendEvent, VirtualQueueDropEvent (the queue dropped an entry: its server left queue.yml or the queue module stopped).queue.yml and when the queue module is switched off.registerOnlineCountContribution(plugin, IntSupplier) lets other plugins add players to the MOTD online count (REAL and OFFSET modes; STATIC ignores them; %real_online% stays the proxy count). The supplier runs on a netty thread and must return at once.command-blocker.scope: proxy in config.yml) it only filters commands the proxy itself has registered (/server, /glist, /velocity ...); backend commands tab-complete and run untouched. scope: all restores the old behaviour of filtering every command./send <player|server|all|current> <server> to a queued server now connects the players directly, past its queue, pause, whitelist and full state, when the sender holds velocity.command.send. Switchable with bypass-send-command in queue.yml (default true). /snproxy queue send already behaved this way.snproxyutility.queue.bypasspaused: its holders connect straight to a queued server while its queue is paused with /snproxy queue pause. snproxyutility.queue.bypass still applies to open servers only. If the direct connection fails the player waits in the queue as before./maintenance add <player> no longer requires the player to be online. An offline player is whitelisted by name (state.names); whoever joins with that name has access. An online player is still stored by UUID./maintenance remove <player|uuid> now kicks the removed player at once when maintenance is on and they are online with no other access.maintenance.player-not-online is replaced by added-by-name, invalid-name and list-entry-name.queues.yml and queue-state.yml are folded into queue.yml (priorities, servers and a plugin-written state block); maintenance-state.yml is folded into maintenance.yml. The plugin rewrites only its state block, as text, so your comments and values are never touched.queue.yml or maintenance.yml is no longer replaced by the defaults: the previous settings stay in force (maintenance starts ON if its file cannot be read).priorities and servers ship without active entries so the managed merge never brings back what you deleted.There is no automatic migration. Before restarting, copy the priorities and servers sections of your queues.yml and the paused list of queue-state.yml into queue.yml, and the enabled flag and players of maintenance-state.yml into the state block of maintenance.yml; then delete the old files.
/snproxy reload now says which modules failed to reload or enable (general.reload-failed) instead of always reporting success.restart.yml keep-countdown-on-reload (default true) keeps it; with false it is cancelled and every player gets restart.cancelled. Switching the restart module off mid-countdown announces the cancellation too.modules.maintenance, ships off): /maintenance on|off|status|add|remove|list, UUID whitelist, login denial with a kick screen, optional kick of online players, server list version text and MOTD while on. State survives restarts. New permissions snproxyutility.admin.maintenance and snproxyutility.maintenance.bypass.restart-grace-seconds (default 180) before it reads Offline, so a restart is not mistaken for a server that is down. The public API still reports OFFLINE for both.mvn verify now checks every net.kyori.adventure reference of the jar against the Adventure 5.2.0 the proxy ships, so a call that exists only in Adventure 4.x fails the build instead of the proxy boot. No runtime change.auto-reconnect.kick-keywords (or a lost connection with connection-lost: true) now marks the server as Offline right away, until its next ping. This works with auto-reconnect off too.max-attempts failures, queue.moved-to-back now shows the server's reason ("Cheating detected"), or queue.no-reason when it gave none./snproxy queue send keeps multi-line reasons readable and is no longer cut at 64 characters.queue.yml: limit-to-free-slots (default true). Turn it off for a backend whose ping shows a fake max player count.messages.yml: queue.no-reason. An existing messages.yml keeps its own queue.moved-to-back; add {reason} to it (for example (&7{reason}&e)) to show the reason./hub (alias /lobby) sends the player to a lobby. Lobbies come from the new hub.yml (servers), or Velocity's try list when it is empty. With order: least-players (default) the lobby with the fewest players is tried first; a lobby that refuses (offline, full, a plugin cancelled) passes the player on to the next one. A player already on a lobby is told so. A server with a queue is never a /hub target./find <player> shows which server an online player is on. Permission snproxyutility.admin.find (also granted by snproxyutility.admin)./queue also answers to /joinq and /move, /leavequeue to /leaveq. Existing config.yml files keep their own alias lists.modules.hub and modules.find (and the /lobby alias). On Velocity-CTD, set hub-enabled = false and find-enabled = false under [commands] in velocity.toml and remove the hub entry of [command-aliases], or switch the two modules off.hub.yml: servers, order.config.yml: modules.hub, modules.find, commands.hub.aliases, commands.find.aliases.messages.yml: help.hub, help.find, hub.sending, hub.already-connected, hub.unavailable, find.result, find.connecting, find.not-online, find.usage. They are merged on boot, and your values are kept.Checked against the Velocity-CTD API (4.2.1): every Velocity API call of the plugin and of SnLib's Velocity base links unchanged.
/snproxy queue send <player|server> <server> (permission snproxyutility.admin.queue). Moves one player, or everyone on a server, to a server right now, past its queue: it ignores pause, whitelist and full, so you can let one player into a paused server without opening it to everyone. When the first argument is a server name, every player on it is sent. The sender gets a summary of how many joined, or the server's reason when a single player is turned away./snproxy queue resume <server>. Paused queues are kept in queue-state.yml, and the console says which queues start paused.restart.yml ships with schedules: []; add a cron line to plan restarts. Existing restart.yml files keep their schedule.messages.yml: help.admin-queue-send and admin.usage-queue-send, send-started, send-done, send-failed, send-no-reason, send-unknown-source, send-nobody. They are merged on boot, and your values are kept.queue-state.yml, written by the plugin.Velocity 3.4.0 with four Paper 1.21.4 backends and up to 200 bots: priorities, batch sending, the whitelist rotation, full, auto-reconnect and its cap, retry backoff, pause persistence, admin sends, the command blocker, the MOTD and restart countdowns. No exception from the plugin.
whitelist-probe-seconds) goes to the next player in the queue instead of always the first one, so whitelisted players further back get in. Nobody loses their place.retry-delay-seconds before the next try, doubled per failure up to retry-delay-max-seconds, while keeping their place; the players behind them are sent meanwhile. max-attempts and moving to the back work as before, and nobody is ever removed from a queue.auto-reconnect.max-per-player times within auto-reconnect.window-seconds (a crash-looping server) stays where they landed and sees queue.auto-reconnect-limit.queue.yml: retry-delay-seconds (2), retry-delay-max-seconds (30), auto-reconnect.max-per-player (3), auto-reconnect.window-seconds (600).messages.yml: queue.auto-reconnect-limit./msg <player> <message>, /tell, /me...) or any typed command of a 1.19.1/1.19.2 client with secure chat. With an up-to-date tab list the client does not know a blocked command and sends it unsigned, so it is blocked normally; the gap only opens while a player's command tree is stale (after /snproxy reload or a group change, until their next server switch or relog) and for 1.19.1/1.19.2 clients. Block those commands on the backend too to close it.Adds a public developer API for other Velocity plugins (API_VERSION 1.0.0), in the com.sn.proxyutility.api package of this jar.
SnProxyUtilityProvider.get() returns the read-only SnProxyUtilityAPI facade: module state, queued servers, queue snapshots (QueueView), a player's queue position (QueuePositionView) and the next restart instant.QueueJoinEvent (Velocity ResultedEvent): fired before a queue join, a denied result keeps the player out of the queue.QueueLeaveEvent: notification after a player left a queue with /leavequeue.config.yml key api-events.enabled (default true, merged automatically) turns event dispatch off.No change for servers that do not use the API: with no listener a queue join behaves exactly as in 1.0.0.
First stable release of SnProxyUtility: a Velocity utility suite (scheduled restarts, MOTD, command blocker, lane-based server queue) built on SnLib.
Audit: FULL /sn-audit gate PASSED (6 criticals found and verified fixed, 1 of them contained, 0 accepted risks, close pass with 0 new criticals).
SnvConfig rewrites a managed yml that failed to parse and writes it in place (X1/X2, upstream). A local guard keeps the previous text as <file>.bak, .bak.1, ...; config.yml is not covered by that backup, and the backup is written after the rewrite..bak cleared, the replaced text is no longer saved (console warning).queues.yml whose servers: key is null, a list or a scalar drops every queue with no console line (W40).