Network and proxy · Our own plugin

IgniteQueue

IgniteQueue runs on a limbo server behind Velocity. When the main server goes down, players land there instead of being kicked; the plugin watches the main server and sends everyone back in controlled batches once it is really up.

3states
2,021lines of Java
0proxy plugins needed

The problem

A crash or restart on the main server kicks everyone to the proxy's error screen, and not all of them come back. The ones who do all reconnect in the same second, onto a server that has not finished loading its worlds.

What we built

  1. 01A status monitor that pings the main server on an interval
  2. 02A three-state machine: offline, online and waiting, sending
  3. 03Batched sends with retries for players who did not move
  4. 04Per-player boss bar with the countdown and their own ETA
  5. 05Queue Brawl: an optional knockback game for the waiting room, with kills credited to the last hit and a best pusher shown before the transfer

Technical decisions

The calls that shaped the build, and why we made them.

  • Trust the pings, not the first one

    The MOTD tends to answer before the world is ready, so the server has to answer several pings in a row and then wait out a grace delay before anyone is sent. Any failed ping drops the state back to offline.

  • Batches, not a flood

    Players go back a few at a time on an interval, so the main server is not hit by every join at once. Anyone still in the queue after their transfer is retried in a later batch.

  • Nothing on the proxy

    Transfers use the standard BungeeCord Connect message, which Velocity also speaks, so the proxy needs no extra plugin.

  • Ranking in the tab list

    Folia has no scoreboard API, so the Queue Brawl ranking rides on the tab list header and footer instead.

Stack and size

Counted from the repository

Java
2,021 lines in 20 files
Platform
Paper and Folia, behind Velocity
Storage
None, the queue is rebuilt from online players
Commands
7
  • Java 21
  • Paper 1.21
  • Folia
  • Velocity
  • IgniteAPI

Need something like this?

Tell us what the server needs. You get a fixed price and a delivery date back, usually the same day.