How the pieces fit
Players connect to the proxy. The proxy authenticates them with Mojang and forwards them to a backend server such as a lobby. When they switch, the proxy moves them to another backend. Only the proxy should be reachable by players.
Configure Velocity
Start Velocity once to create velocity.toml and forwarding.secret. In velocity.toml:
- online-mode = true: the proxy verifies accounts
- player-info-forwarding-mode = "modern": the secure forwarding method for Paper
- Under [servers], list each backend, for example lobby = "127.0.0.1:30066"
- try = ["lobby"]: the server players land on first
Configure each Paper backend
In server.properties set online-mode=false, because the proxy now handles authentication. In config/paper-global.yml, under proxies, set velocity enabled to true, online-mode to true, and secret to the contents of Velocity's forwarding.secret file. Restart the backend. Players now arrive with their real UUIDs and skins.
Secure the backends
A backend in offline mode accepts anyone who can reach it directly. Modern forwarding with a secret stops impostors from joining through anything other than your proxy, but it is still best that backend ports are not exposed publicly, either by binding them to a private address or by blocking them in a firewall. The StormNodes panel includes a firewall page for this kind of rule.
Plugins on a network
Velocity has its own plugins for network-wide features, such as LuckPerms for Velocity, MiniMOTD and chat bridges. Gameplay plugins stay on the backends. Use a shared MySQL or MariaDB database for LuckPerms so ranks are the same everywhere.