Configure FlowGate Lite
Every FlowGate Lite option in config.yml, messages.yml and motd.yml with its default and effect, plus Velocity notes, usage statistics and FlowGate Bridge setup.
On this page
FlowGate Lite has three files, in plugins/FlowGate-Lite/ on BungeeCord and its forks, or in plugins/flowgate-lite/ on Velocity. Edit them and run /flowgate reload. If anything is invalid, the reload is refused and the old config stays active.
How the files are loaded#
- At startup and on reload, all three files are read and checked. A fatal error stops startup (the plugin turns itself off) or refuses the reload.
- When a key from the default file is missing, it is added back with its default value and the file is saved. Saving removes the comments. Entries you delete inside
slash-servers,server-weights,server-namesandmotdsstay deleted since 1.0.8. Only a whole missing section comes back with its examples. - Numbers outside their allowed range are moved to the nearest allowed value without a warning.
- The shipped comment says hub and fallback changes need a restart. In 1.0.8 a reload does re-read them, but restart if something does not take effect, as the reload message also suggests.
config.yml#
The shipped file. In all three files shown on this page, the version and link lines at the top are left out, and comments that use a long dash in the shipped file use a comma here.
# FlowGate-Lite | config.yml
#
# Hub and fallback servers MUST exist in your proxy config (BungeeCord config.yml or velocity.toml).
# /flowgate reload applies most changes without a full restart.
# Server list changes (hubs / fallback) require a proxy restart.
debug:
enabled: false
titles:
enabled: true
# Hub servers the router distributes players across.
# Names must match servers defined in the proxy config.
hubs:
- servername1
- servername2
- servername3
# Commands that send players to the best available hub (max 3).
hub-commands:
- hub
# Routing behaviour
routing:
enabled: true
# Minimum delay (ms) between successive routing attempts for one player
retry-cooldown-ms: 5000
# Consecutive ping failures before a hub is quarantined
quarantine-threshold: 3
# How long (ms) a quarantined server is skipped before being retried
quarantine-duration-ms: 60000
# Send returning players back to their last successful hub while it is healthy
sticky-sessions: false
# Sticky-session validity window (ms)
sticky-session-ttl-ms: 300000
# Fallback / limbo server, players land here when no hub is reachable
fallback:
enabled: true
fallback-server: limbo-wait
# Player limits per hub
players:
# Hard cap: hub is excluded from routing at or above this player count
hub-max-players: 100
# Slots reserved from routing (effective cap = hub-max-players - reserved-slots)
reserved-slots: 5
# How often (seconds) backends are pinged and limbo players are re-evaluated
check-interval-seconds: 10
# Optional per-server balancing weights.
# Score = playerCount / weight; lower score = preferred.
# A weight-2 hub absorbs roughly 2x the load of a weight-1 hub before scores equalise.
server-weights:
servername1: 1
servername2: 2
# Direct server commands: /commandName -> target-server
slash-servers:
anarchy: anarchy-server
dev: dev-server
# Policy for backend BungeeCord-channel Connect plugin messages (on Velocity see README: bungee-plugin-message-channel).
# Empty destination list permits only configured hubs and the fallback server.
# Empty source list permits messages from any backend registered on this proxy.
plugin-messages:
allowed-connect-servers: []
allowed-source-servers: []
# Human-readable display names used in messages (does not affect routing)
server-names:
servername1: Hub 1
servername2: Hub 2
# Anonymous usage statistics: once a day FlowGate Lite tells kori.my that one
# more server runs it (an anonymous id, the plugin version and the platform).
# No IP addresses, server names or player data are sent. Set to false to turn it off.
metrics:
enabled: trueServers#
| Setting | Default | What it does |
|---|---|---|
hubs | servername1, servername2, servername3 | The hubs players are spread across. Every name must exist in the proxy's config (BungeeCord's config.yml or velocity.toml), or the plugin will not start. At least one is required. |
fallback.enabled | true | Use a fallback (limbo) server when no hub is available, and catch kicks. When false, kicks are not caught at all and players are disconnected as usual. |
fallback.fallback-server | limbo-wait | The waiting server. Must exist in the proxy's config while fallback.enabled is true. |
server-names | examples | Display names used in the "Connecting you to" message, for example lobby-1: Lobby 1. They do not affect routing. |
Routing#
| Setting | Default | Range | What it does |
|---|---|---|---|
routing.enabled | true | Master switch. When false, joins are not redirected, the limbo loop stops, and /hub finds no hub, so it sends players to the fallback server. Server commands and kick fallback still work. | |
routing.retry-cooldown-ms | 5000 | 500 to 60000 | Minimum time between two automatic tries to move one player out of limbo. |
routing.quarantine-threshold | 3 | 1 to 50 | Failed pings in a row before a server is quarantined. |
routing.quarantine-duration-ms | 60000 | 5000 to 600000 | How long a quarantined server is skipped. After that it is pinged again; one good ping brings it back. |
routing.sticky-sessions | false | Send a player back to the hub they last connected to, while it is healthy and not full. | |
routing.sticky-session-ttl-ms | 300000 | 10000 to 3600000 | How long the last hub is remembered after the player connected to it. Only kept while the player is online. |
check-interval-seconds | 10 | 1 to 300 | How often servers are pinged and limbo players are checked. |
Limits and weights#
| Setting | Default | Range | What it does |
|---|---|---|---|
players.hub-max-players | 100 | 1 to 10000 | A hub at or above the cap is skipped. |
players.reserved-slots | 5 | 0 to 1000 | Taken off the cap. The real cap is hub-max-players minus reserved-slots, and at least 1. These slots stay free for players who join a hub by other means. |
server-weights | examples | 1 to 1000 | Per hub. Score is players divided by weight; the lowest score wins. A hub with weight 2 takes about twice the players of a hub with weight 1. Hubs without a weight count as 1. |
FlowGate Lite only routes players. The proxy's and the backend's own player limits still apply.
Commands in config.yml#
| Setting | Default | What it does |
|---|---|---|
hub-commands | [hub] | Up to three command names that send a player to the best hub, for example [hub, lobby]. More than three is a config error. Use [] for none. |
slash-servers | anarchy: anarchy-server, dev: dev-server | Your own commands, command: server. /anarchy sends the player to anarchy-server. Entries whose server does not exist are skipped with a warning. An empty server name is a config error. |
Backend plugin messages#
These control BungeeCord-channel Connect messages that backends send for a player, for example from FlowGate Bridge, a server selector or an NPC plugin.
| Setting | Default | What it does |
|---|---|---|
plugin-messages.allowed-connect-servers | [] | Servers a backend may send players to. Empty means only your hubs and the fallback server. If you list any server, only the listed servers are allowed, so add your hubs too if you want them. |
plugin-messages.allowed-source-servers | [] | Backends allowed to send these messages. Empty means any backend. |
A Connect message is also blocked when:
- It does not come from the server the player is on right now.
- It is larger than 32766 bytes or cannot be read.
- The target server does not exist, or (on BungeeCord) is restricted and the player lacks access.
- The player sent more than 10 messages in one second.
- The target is a hub that is offline, quarantined or full.
Blocked messages are dropped silently. With debug.enabled: true, the console logs why, for example Plugin message blocked: disallowed destination 'survival'. On BungeeCord, other BungeeCord subchannels are passed through unchanged. On Velocity they work differently; see Velocity.
Other#
| Setting | Default | What it does |
|---|---|---|
debug.enabled | false | Log routing decisions, every successful ping, and a routing summary at shutdown. |
titles.enabled | true | Show the animated waiting title to players in limbo. |
metrics.enabled | true | Send one anonymous usage message a day. See Usage statistics. A config without this key counts as true. |
Usage statistics#
With metrics.enabled: true, FlowGate Lite sends one small message a day over HTTPS to the kori.my stats API (api.kori.my). The first one goes out 5 minutes after the proxy starts. It contains:
- An anonymous ID: a one-way hash of a random value kept in
.usage-idin the plugin's folder, so the same proxy is only counted once. - The FlowGate Lite version.
- The platform,
bungeecordorvelocity, and that it runs on a proxy.
It never contains IP addresses, server names or player data. The numbers only count how many servers use the plugin. Set metrics.enabled: false to turn it off. The setting is read before every message, so /flowgate reload applies it without a restart. If the API cannot be reached, nothing else is affected. The messages stop when the proxy shuts down. See the Privacy Policy.
Velocity#
FlowGate Lite works the same on Velocity, with these differences:
- Config folder.
plugins/flowgate-lite/. Copy your BungeeCord files there when you move a network. - Server names. Hubs, the fallback server and
slash-serverstargets use the names under[servers]invelocity.toml. - Backend
Connectmessages. Whilebungee-plugin-message-channel = trueinvelocity.toml(Velocity's default), Velocity answersBungeeCordchannel messages itself. FlowGate Lite never sees them, soplugin-messagesand its other checks do not apply, and it logs a note at startup. Set it tofalseto let FlowGate Lite check backendConnectmessages. - Other BungeeCord subchannels. FlowGate Lite handles only
Connect. Withbungee-plugin-message-channel = false, other subchannels such asPlayerCount,GetServers,ForwardandConnectOtherare dropped. Keep Velocity's handler on if backend plugins need them. - Restricted servers. Velocity has no
restrictedflag, so restricted-access checks apply on BungeeCord only. - Client messages.
BungeeCordchannel messages sent by players are always dropped. - Failed switches. When a move to another server fails, the player stays where they are, as Velocity does by default. Kicks from the server a player is on still use FlowGate Lite's fallback.
- Reload. Velocity cannot reload plugins.
/flowgate reloadreloads FlowGate Lite's own three files. Restart the proxy to load a new jar.
Use with FlowGate Bridge#
FlowGate Bridge on a game server sends a Connect message for its commands. FlowGate Lite then checks it. To let Bridge commands reach servers that are not hubs:
-
List every Bridge target in
plugin-messages.allowed-connect-servers, plus your hubs and fallback server if Bridge should reach them too:plugin-messages: allowed-connect-servers: [survival, skyblock, lobby-1, lobby-2] allowed-source-servers: [] -
Optional: limit
allowed-source-serversto the game servers that run Bridge. -
Run
/flowgate reload. -
On Velocity, set
bungee-plugin-message-channel = falseinvelocity.tomland restart the proxy, or the checks above do not apply. See Velocity.
Typed commands like /survival are handled on the proxy first if they are in FlowGate Lite's slash-servers. Bridge covers the commands that never reach the proxy, such as Citizens NPC commands. See the FlowGate Bridge overview.
messages.yml#
All texts use & colour codes. Most messages are sent as prefix, a space, then the message. An empty message is not sent.
# Prefix prepended to most plugin messages. Use "" to disable.
prefix: "&b[&aFlowGate&b]"
# Titles shown to players waiting in the limbo/fallback server
titles:
waiting:
title: "&cWaiting"
animation:
- "&f."
- "&f.."
- "&f..."
- "&f.."
- "&f."
# /flowgate command messages
commands:
usage: "&7Usage: &f/flowgate reload"
reload: "&aAll files have been successfully reloaded! &7(Restart the proxy server if all changes are not applied)"
unknown: "&cUnknown command. Did you mean &f/flowgate reload&c?"
no-permission: "&cYou do not have permission to use this command."
# Fallback messages
fallback:
connecting: "&eAll Hubs are offline. Sending you to fallback..."
# Limbo routing messages
routing:
searching: "&eSearching for an available hub..."
found: "&aHub found! Connecting..."
no-hubs: "&cNo hubs are currently available."
# Slash-server command messages
slash-server:
not-exist: "&cThat server does not exist."
connecting: "&aConnecting you to &f{server}&a..."
unavailable: "&cThat server is currently unavailable."
fallback: "&eAll hubs are offline. Sending you to fallback server..."
no-permission: "&cYou do not have permission to use this command."| Key | Shown when |
|---|---|
prefix | Before most messages. "" turns it off. |
titles.waiting.title | Title shown every second while a player is in limbo. Required. |
titles.waiting.animation | Subtitle frames, one per second, in a loop. Required. |
commands.usage | /flowgate with no subcommand. Required. |
commands.reload | A reload worked. Required. |
commands.unknown | Unknown /flowgate subcommand. Required. |
commands.no-permission | Missing /flowgate permission. |
fallback.connecting | /hub found no hub and sends the player to limbo. Sent without the prefix. |
routing.searching | A player arrives in limbo after a kick or a server switch. Players who land there when they join only get the title. |
routing.found | A hub was found for a player in limbo. |
routing.no-hubs | /hub found no hub and limbo is not available. |
slash-server.not-exist | A server command's target is missing or restricted for the player. |
slash-server.connecting | A server command or /hub connected the player. {server} is the display name from server-names. Sent without the prefix by /hub. |
slash-server.unavailable | A server command's target is down, but hubs are up. |
slash-server.fallback | A server command's target is down and no hub is up; the player goes to limbo. |
slash-server.no-permission | Not used in 1.0.8. |
If a required key is missing, the plugin does not start or the reload is refused.
motd.yml#
# Supports legacy colors (&a, &c, &l, etc.) and HEX colors (&#RRGGBB).
# Max 2 lines are visible in the Minecraft server list.
# Active MOTD profile, must be a key under "motds"
motd: example
# MOTD profiles, switch active profile by changing the "motd" value above
motds:
example:
lines:
- "&cLine 1"
- "&fLine 2"
enable-hover: true
hover:
- "&cMy Hover"
maintenance:
lines:
- "&fLine 1"
- "&cServer is currently in maintenance"
enable-hover: true
hover:
- "&cServer offline"
- "&7Check Discord for updates!"| Setting | Default | What it does |
|---|---|---|
motd | example | The active profile. It must exist under motds and have lines, or the plugin does not start. |
motds.<name>.lines | required | MOTD lines. Two are visible. & codes and &#RRGGBB hex colours. An empty list leaves the MOTD unchanged. |
motds.<name>.enable-hover | true | Replace the player list shown when hovering over the player count. |
motds.<name>.hover | none | The hover lines. An empty list leaves the hover unchanged. |
The MOTD is always applied; there is no on/off switch. To let another plugin, such as NullBrand, own the server list, give the active profile lines: [] and enable-hover: false. To switch profiles, change motd and run /flowgate reload.
Commands and permissions#
/flowgate reload, /flowgate status, the hub and server commands, their permissions and the /flowgate status output are on Commands.