Skip to content

feat(velocity): add the velocity plugin and proxy image - #20

Merged
TheMeinerLP merged 3 commits into
mainfrom
feat/velocity-plugin
Nov 24, 2026
Merged

TheMeinerLP merged 3 commits into
mainfrom
feat/velocity-plugin

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Contributor

Problem

Players reach game servers through a Velocity proxy, but the proxy's server list is static. Every game instance that Grus starts or stops would need a manual edit of velocity.toml, and a player whose game server kicks them has no lobby to land in.

Approach

  • grus-velocity keeps the proxy's server list in step with the Ready game instances reported by Grus. It loads the full list on connect and on resync, then follows the event stream. It only removes servers it registered itself; entries from velocity.toml are never touched.
  • Players joining without an initial server, and players kicked from a game server, are sent to the lobby pool with the fewest players that still has room.
  • The proxy reports itself to Grus as ready, retrying through transient controller errors, and sends its player count as a heartbeat.
  • The proxy image is Temurin 25 JRE with a pinned Velocity 4.3.1 build (checksum checked at build time), the plugin, and a config that uses modern forwarding and starts with an empty server list.

The SDK gains a retrying readyWithRetry, which the Minestom integration now uses so a short controller outage no longer leaves a server stuck in Starting.

@TheMeinerLP
TheMeinerLP merged commit 4f5d516 into main Nov 24, 2026
5 checks passed
@TheMeinerLP
TheMeinerLP deleted the feat/velocity-plugin branch November 24, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant