Skip to content

About

Mapkeeper for Paper: BlueMap's web map behind a sign-in, showing each player only the worlds and players they're allowed to see.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

BlueMapAuth

BlueMapAuth for Paper: BlueMap's web map behind a sign-in, showing each player only the worlds and players they're allowed to see.

Status: early, version 0.3.0, for Posse 0.11.0. 40 HTTP and config tests pass, plus a bot test (27/27 on Paper 26.1.2, 26.2 and 26.3, 2026-11-25, and 8/8 without Posse and LuckPerms, with an old Mayor jar installed and ignored, on 26.1.2; 28/28 through a local Caddy running the staged site block on 0.2.2) on throwaway servers with the real BlueMap 5.29, LuckPerms 5.5, Posse 0.11.0 and WelcomeWagon, signing in through WelcomeWagon's "Open the map" over HTTP. The hand-off page was checked in a real browser (Chromium, 2026-11-11, against made-up data on localhost; BrowserDemo in the test sources). The token leaves the address bar, the cookie is invisible to scripts, a reused link explains itself, and the page has no policy errors. Serving the map on 26.2 and 26.3 passed the same bot test on 2026-11-25. Running behind Caddy was last tested on 26.1.2 only.

What it does

  • Serves BlueMap's web map at its own address, such as map.example.org, and nothing of it to anyone who isn't signed in. BlueMap's own web server stays on 127.0.0.1, so BlueMapAuth is the only way in.
  • Signs a browser in with a one-time link from WelcomeWagon's invite page ("Open the map"). The link works once, for a minute. The map then has its own cookie for its own address only, and it ends within 30 seconds of the WelcomeWagon session ending.
  • Lists only the maps of worlds the viewer may enter (multiverse.access.<world> by default). Any other map is "not found", the same as one that doesn't exist.
  • Passes on only an exact list of paths, case-sensitive, and refuses any percent-encoding or ./.. segment, so nothing reaches BlueMap in a form it would read differently. Live markers and the live event stream aren't passed on.
  • Shows only the players the viewer may see, and never a player BlueMap marks as being in another world. A player's head picture is there only for players the viewer may see. In game, that's chat's reach from Posse. A viewer who isn't in game sees only players who share a Posse circle with them.
  • Fails closed. Without WelcomeWagon nobody can sign in. Without BlueMap there are no maps. Without Posse the viewer sees only themselves. For a viewer who isn't in game, without LuckPerms there are no maps and no other players.

Install or build

Needs Paper 26.1 or newer and Java 25. BlueMap, LuckPerms, Posse (0.11.0 or newer, for circles while away) and WelcomeWagon (0.4 or newer, for the hand-off) are all optional.

./gradlew build

The jar is build/libs/BlueMapAuth-<version>.jar. In plugins/BlueMapAuth/config.yml, set enabled: true and public-url. Point your HTTPS proxy at 127.0.0.1:8180, and set BlueMap's web server to ip: "127.0.0.1". In WelcomeWagon, set page.map-address to the same address.

Bot test

test/live/bluemapauth.mjs builds a throwaway server in a temp folder, runs bots and browser requests against it, and deletes it. The settings it needs are at the top of the file. MK_TEST_MISSING=1 runs it without Posse and LuckPerms, to check those paths fail closed. MK_TEST_PROXY=1 puts a throwaway Caddy in front, running the staged map site block. It needs Node 22 or newer, and npm ci in test/live first.

Commands

  • /bluemapauth status: whether the map is served, what's wrong with the config, and which plugins it found. Needs bluemapauth.admin.
  • /bluemapauth reload: re-reads config.yml.

License

MIT. See LICENSE.

About

Mapkeeper for Paper: BlueMap's web map behind a sign-in, showing each player only the worlds and players they're allowed to see.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages