Bungee Status
Networks running BungeeCord or Velocity expose per-server online counts via plugin messages. AbstractMenus surfaces them as %bungee_<server>% placeholders. This menu uses them to build a “server picker” with live counts and click-to-connect tiles.
What it teaches
Section titled “What it teaches”- The
bungeeConnectaction for inter-server transfer - The
%bungee_<server>%placeholder for live online counts - Using
glow: trueto make a featured tile stand out (lobby in this case) - Pairing
updateIntervalwith bungee placeholders to keep counts fresh
How it works
Section titled “How it works”Each tile is a regular item with one custom action: click { bungeeConnect: "lobby" }. When clicked, the plugin sends a BungeeCord transfer plugin message and the proxy sends the player to the named backend server.
The %bungee_lobby% placeholder asks the BungeeCord listener “how many players are on the lobby backend right now?” and renders the count. With updateInterval: 40 (2 seconds), the count refreshes while the menu is open.
For the count to work:
- The server running AbstractMenus needs
bungeeCord: trueinplugins/AbstractMenus/config.conf. - The proxy needs the same server name in its config (the
lobbyinbungeeConnect: "lobby"must match the proxy’s registered name). - BungeeCord plugin messaging must be enabled on both ends.
Adding more servers
Section titled “Adding more servers”Each tile is independent. Copy any block, change the slot, name, lore, and the two server name references (bungeeConnect + the placeholder). Real backend names go in instead of lobby / survival etc.
For visual variety, swap material: per game mode (TNT for “TNT Games”, IRON_SWORD for “Battle Royale”, etc).
Showing online/offline status
Section titled “Showing online/offline status”To gate a tile by whether the server is reachable, use the bungeeIsOnline rule:
{ slot: 10 ... rules { bungeeIsOnline: "lobby" }}If lobby is offline, the item won’t render. Add a fallback “offline” item at the same slot with no rules and a different look (gray dye, “Server is offline” text) to use the dual-item pattern from Counter & Toggle.
Try it
Section titled “Try it”After installing the example pack:
- Run a BungeeCord/Velocity proxy with backends named
lobby,survival,sw,bb. - Set
bungeeCord: trueinplugins/AbstractMenus/config.conf. - Drop the bundle into
plugins/AbstractMenus/menus/example/. /am reload.- Type
/ame_serversin-game.