DriftLobby
The hub, and the way back to it from anywhere.
A network hub for Paper and Folia 26.3: a server selector with live player counts, hub items that stay in place, a
player hider, launch pads, double jump, speed, void return, hub protection, a join title, sound and firework, and
/hub on every server of the network. Part of DriftSuite.
Features
- Two modes:
mode: hubon the lobby server turns everything on;mode: gameon every other server leaves only/hub. - Server selector: a menu from
selector.yml(opened with the compass or/servers). Each button shows how many players are on that server and whether it's online, refreshed every few seconds while the menu is open. Clicking sends the player there through the proxy. Buttons can need a permission, be hidden without it, or run a command instead (for things like/showcase). - Live counts: asked from the proxy with the BungeeCord
PlayerCountandGetServersmessages (works on BungeeCord and on Velocity withbungee-plugin-message-channelon). Give a server anaddressand it's also checked directly, so it shows offline the moment it goes down. - Hub items: the selector compass, the player hider and your own command items from
menus.yml. Handed out on join, respawn and on entering a hub world, taken away on leaving it. They can't be moved, dropped, swapped, placed or lost on death. - Player hider: one click hides every other player (staff with
driftlobby.hider.visiblestay visible). The choice is saved on the player. - Launch pads: pressure plates on a chosen block throw players forward and up. Power and height per pad.
- Double jump: jump again in mid-air. Never takes flight away from
/flyor creative. - Speed: a hidden, endless speed effect in the hub, removed when leaving it.
- Void return: falling out of the hub sends players back to the spawn.
- Hub protection: no breaking, placing, using blocks, hunger, damage, dropping or picking up, and the world
doesn't burn, melt, decay or blow up. Each is a switch with a bypass permission.
/driftlobby buildlets staff skip the rules while they build. - Time and weather lock: hub worlds stay at one time of day and never rain.
- Join: players are sent to the spawn and get a title (a different one on their first join), a sound and optionally a firework.
- Spawn from DriftEssentials: DriftLobby has no
/spawnof its own. Players go to the spawn set with DriftEssentials'/setspawn(and its/spawnkeeps working), old and new DriftEssentials alike. Without DriftEssentials the world spawn is used. /hubeverywhere: on a game server it sends players to the hub server (blocked in DriftCombat combat, optional warmup); on the hub it sends them to the spawn.- NPC selectors: DriftNPCs'
send_to_serveraction uses the same proxy channel, so NPCs can be server buttons.
Requirements
- Paper or Folia 26.3 (or a fork like Leaf), Java 25
- A BungeeCord or Velocity proxy for the selector, counts and
/hub - Optional: DriftEssentials (spawn), DriftCombat (no
/hubin combat), PlaceholderAPI, DriftNPCs
There's no join queue: that needs a plugin on the proxy.
Installing
Put DriftLobby-<version>.jar in plugins/ on every server of the network and start it. It works without any
changes: its files are written to plugins/DriftLobby/ (see Folder layout). New installs start in
mode: game, which only adds /hub, so nothing happens to a survival server by accident. Then set up the lobby:
Setting up a network
- Put DriftLobby on every server.
- On the lobby:
mode: hub, set the spawn with DriftEssentials'/setspawn, list your servers inselector.yml(their names as they are in the proxy config). - On every other server:
mode: gameandhub.serverset to the lobby's name in the proxy config. - On Velocity, set
bungee-plugin-message-channel = trueinvelocity.toml. - Restart (the mode needs a restart).
Commands
| Command | What it does | Permission |
|---|---|---|
/hub (/lobby) | Game server: go to the hub server. Hub: go to the spawn | none |
/servers (/serverselector) | Open the server selector (hub only) | none |
/driftlobby reload | Reload every file | driftlobby.admin |
/driftlobby build | Build mode on or off: skip the hub rules (hub only) | driftlobby.build |
/driftlobby version | Show the version | driftlobby.admin |
/driftlobby help | List the staff commands (click one to fill it in) | driftlobby.admin |
Command names, aliases and permissions can be changed in commands.yml.
Permissions
| Permission | What it allows | Default |
|---|---|---|
driftlobby.admin | /driftlobby | op |
driftlobby.build | /driftlobby build | op |
driftlobby.doublejump | Double jump in the hub | everyone |
driftlobby.hider.visible | Stay visible to players with the hider on | op |
driftlobby.bypass.warmup | No /hub warmup | op |
driftlobby.bypass.items | Move, drop and swap hub items | nobody |
driftlobby.bypass.inventory | Keep your inventory when joining the hub | nobody |
driftlobby.bypass.break / place / interact / drop / pickup | Skip that hub rule | nobody |
driftlobby.bypass.hunger / damage | Get hungry or take damage as normal | nobody |
The bypass permissions aren't given to ops, so staff don't wreck the hub by accident; use /driftlobby build.
Turning features on and off
Every feature is a switch at the top of config.yml, under features:.
| Switch | What it does |
|---|---|
join-teleport | Send players to the spawn when they join the hub |
join-title | Title on join (text in messages.yml) |
join-sound | Sound on join |
join-firework | Firework on join (off by default) |
hub-command | /hub |
server-selector | The server selector |
hub-items | Hand out the hub items |
lock-items | Hub items can't be moved or dropped |
player-hider | The player hider |
launch-pads | Launch pads |
double-jump | Double jump |
speed | Speed in the hub |
void-return | Back to spawn out of the void |
protect-break | No breaking blocks, paintings, frames or armor stands |
protect-place | No placing blocks, emptying buckets or lighting fires |
protect-interact | No doors, chests, buttons, levers, item frames, armor stands or trampling |
protect-hunger | No hunger |
protect-damage | No damage |
protect-drop | No dropping items |
protect-pickup | No picking items up |
protect-world | No fire, melting, leaf decay or explosion damage |
lock-time | Fixed time of day |
lock-weather | Always clear |
placeholders | PlaceholderAPI placeholders |
Settings
Everything in config.yml has a note above it. The main ones:
mode:huborgame. New installs start asgame, so DriftLobby does nothing to a survival server until you sethubon the lobby.hub-worlds: the worlds the hub rules apply in (empty = every world on the server).hub.server,hub.warmup,hub.cancel-on-move,hub.block-in-combat:/hub.hub-items.clear-inventory,hub-items.held-slot: what happens to the inventory on joining the hub.launch-pads.pads: each pad's plate, block below, power and height.double-jump.power,height,cooldown,sound;speed.level;void-return.below-y;lock-time.time.join.*: title timings, the join sound and the firework.
Can't be exploited
DriftLobby moves no money and makes no items, so there's nothing to dupe, but:
- Hub items are marked and locked: they can't be moved, dropped, swapped to the off hand, placed, taken out through a number key or lost on death, and are removed when leaving the hub world.
- With
clear-inventoryon, players hold only hub items in the hub, so nothing can be brought in or taken out. - Menus are locked: nothing can be taken out of or put into the selector.
/hubis blocked in DriftCombat combat (also during the warmup), so it can't be used to escape a fight.- Double jump only works in survival and adventure and never takes flight from players who had it, and flight it gave is taken back when a player leaves or the plugin stops, so nobody keeps flight on another server.
- Launch pads and double jump never cause fall damage, and the join firework never hurts anyone.
PlaceholderAPI
Hub mode only.
| Placeholder | Value |
|---|---|
%driftlobby_total% | Players on the whole network |
%driftlobby_players_<server>% | Players on that server |
%driftlobby_status_<server>% | Online or Offline |
%driftlobby_hider% | true when the player has others hidden |
Configuration files
| File | What's in it |
|---|---|
config.yml | Feature switches, mode, hub worlds and every setting |
selector.yml | The server selector menu and its servers |
messages.yml | Every message and the join title (MiniMessage), with the prefix and prefix-enabled |
menus.yml | The hub items |
commands.yml | Command names, aliases and permissions |
Every file starts with a boxed header saying how to apply changes, is split into sections, and has a note above
every option saying what it does, its unit and the values it takes. Run /driftlobby reload after editing; the mode,
command names and aliases need a restart.
When you update, new options are added with their notes and everything you changed is kept. When the notes
themselves change, each file is rebuilt once with the new notes and your values written back in; the old file is
kept in data/backups/. Messages you never changed get the new default wording.
Mistakes in the files
A value DriftLobby can't use never stops the plugin. The console says which file and option, what was wrong and what is used instead, for example:
config.yml: speed.level "fast" isn't a whole number, using 2
/driftlobby reload tells you how many problems it found, so you know to look.
Folder layout
plugins/DriftLobby/
config.yml settings, starting with the features: switches
selector.yml the server selector
messages.yml every message
menus.yml the hub items
commands.yml command names, aliases and permissions
data/ the plugin's own files, no need to open them
backups/ old copies of files DriftLobby replaced
*.version which version of each file you have
DriftLobby has no database: the player hider choice is stored on the player. Older versions kept the hidden
.messages.yml.version / .menus.yml.version markers and messages.old.yml backups next to config.yml. They are
moved into data/ the first time the new version starts (one console line per file), and nothing is overwritten or
deleted.