Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ BlueMapMini: a BlueMap minimap and coordinates HUD for Paper, rendered in game f

It's an unofficial add-on for BlueMap and isn't affiliated with BlueMap's authors.

**Status:** pre-release, version 0.5.2, for Posse 0.11.0. 0.5.2 makes map mode show the coordinate line where BlueMap has no map, instead of nothing. It passed unit tests and the live `coordsonly` and `dimensions` groups (45 checks) on throwaway Paper 26.2; the full live suite wasn't rerun. 0.5.1 only drops a load-order entry that looped with Posse (unit tests and a server rehearsal on a copy of a live server). 0.5.0 passed the full live suite and the real-Posse test (8 checks) on throwaway Paper 26.3 (337 checks, the client font check skipped), 2026-11-25, and on 26.1.2 and 26.2 (337 each) just before the old share keys were dropped; the config change is covered by unit tests there. 0.3.0 passed a full test suite on live Paper 26.1.2, 26.2 and 26.3 servers with real BlueMap tiles, using a protocol bot. 0.4.1 (the share audience setting) passed it again on 26.3 only, 334 of 335 with the client font check skipped, plus the real Posse test. It hasn't been seen in a real game client yet. See [Testing](#testing).
**Status:** pre-release, version 0.5.3. Shares need Posse 0.11.0 or newer, and `players.audience: posse` needs Posse 0.11.3 or newer. 0.5.3 adds `players.audience`, so player dots can follow Posse's circles. It passed the unit tests (113), the live `posse` test (46 checks, with the real Posse 0.11.3) and the rest of the live suite (341 checks, one font check skipped) on throwaway Paper 26.1.2, 26.2 and 26.3. It hasn't been seen in a real game client. 0.5.2 makes map mode show the coordinate line where BlueMap has no map, instead of nothing. It passed unit tests and the live `coordsonly` and `dimensions` groups (45 checks) on throwaway Paper 26.2; the full live suite wasn't rerun. 0.5.1 only drops a load-order entry that looped with Posse (unit tests and a server rehearsal on a copy of a live server). 0.5.0 passed the full live suite and the real-Posse test (8 checks) on throwaway Paper 26.3 (337 checks, the client font check skipped), 2026-11-25, and on 26.1.2 and 26.2 (337 each) just before the old share keys were dropped; the config change is covered by unit tests there. 0.3.0 passed a full test suite on live Paper 26.1.2, 26.2 and 26.3 servers with real BlueMap tiles, using a protocol bot. 0.4.1 (the share audience setting) passed it again on 26.3 only, 334 of 335 with the client font check skipped, plus the real Posse test. It hasn't been seen in a real game client yet. See [Testing](#testing).

- Requires Paper 26.1 or newer, Java 25, and a BlueMap version that matches your server (see below). Java Edition only. Paper 1.21.11 and older aren't supported.
- Works alongside other resource packs, because it never overrides a shader and only adds its own files.
Expand Down Expand Up @@ -57,7 +57,7 @@ If another plugin owns a name, BlueMapMini backs off: `/map` to `/worldmap`, the
| --- | --- | --- |
| `bluemapmini.use` | everyone | Seeing the map at all. Removing it hides everything for that group. |
| `bluemapmini.fullscreen` | everyone | The fullscreen map. |
| `bluemapmini.seeplayers` | everyone | Other players on the map. |
| `bluemapmini.seeplayers` | everyone | Other players on the map. `players.audience` can narrow who shows up. |
| `bluemapmini.share.send` | everyone | Sharing your coordinates with `/hud share`. |
| `bluemapmini.share.receive` | everyone | Receiving coordinates other players share. |
| `bluemapmini.admin` | ops | `/bluemapmini reload`, `debug` and `pack`. |
Expand Down Expand Up @@ -87,6 +87,23 @@ The clock follows the coordinates as a small picture and 24-hour time, such as `

Up to 8 themes fit in the pack. Every built-in theme passes the same readability test, and the plugin warns about one of yours that doesn't. Text needs a WCAG contrast of 4.5:1 against the plate, and three quarters of each clock picture needs 3:1. Both are checked over ten backgrounds from white to black, including the brightest pure colors. A theme that fails still loads, so you can fix it.

## Player dots

The map shows other players in your world within `players.radius` blocks (512 by default) as dots, with arrows at the edge for those farther off the minimap. Players you can't see stay off it: vanished, spectating, invisible and hidden in BlueMap. `players.audience` decides who else is left out:

- `world`: nobody. This is the default.
- `posse`: everyone who doesn't share a Posse circle with you, unless you or they have `posse.bypass`. Needs Posse 0.11.3 or newer. If Posse has no circles set up, nobody is left out.

**Dots follow circles only.** Chat also reaches players in the same world, unless that world is circle-only. Dots don't: two players in different circles never see each other's dots in any world, apart from the `posse.bypass` case above.

With `posse`, **no dots are shown** while Posse is missing, disabled, paused, older than 0.11.3 or failing a check. Any other value counts as `posse`, and so does a `config.yml` that's invalid, empty or unreadable. The console says why. When Posse can't be asked, it also warns at most once a minute, and a player who opens the fullscreen map, or runs `/hud show players` or `/hud` with the map hidden, is told that other players aren't shown. A Posse without the circles check (older than 0.11.3) is reported in the console once, with a line saying to update it. A paused Posse answers no, so dots are hidden without those messages, and Posse reports the pause itself.

**Typos count as `posse` too.** Any key that looks like `audience` and isn't `players.audience` or `share.audience` makes the dots follow Posse, even if `players.audience` also says `world`. That covers an `audience:` line at the left edge, spellings such as `audiance` or `Audience`, and an `audience` in the wrong section. A setting written twice does the same. Other unknown keys under `players:` get a warning and change nothing. The spelling check allows up to two wrong letters, so a very mangled key under `players:` only gets the warning, and a mistyped section name with a mistyped key far from `audience` isn't noticed.

A `config.yml` from before 0.5.3 doesn't have the key and stays `world`. To turn the filter on, add `audience: posse` under `players:`, run `/bluemapmini reload`, and check that the console says `Player dots: only players Posse's circles allow.` with no warning just above or below it.

This setting covers BlueMapMini's in-game map only. BlueMap's web map has its own player settings.

## Sharing coordinates

`/hud share` sends your current coordinates to people you choose, as a chat message with the coordinates and the dimension, such as `Alex shared where they are: 120 64 -35 in the Overworld`. Clicking the numbers copies them. Nothing is shared unless a player asks, and there's no teleport link.
Expand Down Expand Up @@ -127,6 +144,7 @@ The plugin sends its pack alongside any others using the multi-pack API, and pla
- **Other pink boss bars:** the pack makes one boss bar color transparent, so another plugin's bar in that color disappears too. Choose a color with `pack.boss-bar-color` that nothing else uses.
- **Repeated pack wipes:** the pack is re-sent once per session. If another plugin clears packs again, the map stays hidden for that player until they rejoin. This is what stops two plugins fighting in a loop.
- **Bedrock players:** Geyser and Floodgate players don't get a map, because they can't use the pack.
- **BlueMap's web map:** `players.audience` doesn't change what BlueMap's own web map shows. Set that in BlueMap.

## How it works

Expand All @@ -150,7 +168,7 @@ Real terrain has more color variation than the test map, so expect larger update

The plugin has also been tested on live Paper 26.1.2, 26.2 and 26.3 servers with BlueMap 5.29. A protocol bot played the client. It speaks the 1.21.11 protocol and joined through ViaBackwards, so the packets were translated rather than sent by a real 26.x client. Every frame it received was decoded and compared cell by cell with BlueMap's tile files on disk.

The live tests are in [`test/live`](test/live/README.md), with what they cover and what's simulated. `test/live/run.sh` builds a throwaway server, runs them and deletes it.
The live tests are in [`test/live`](test/live/README.md), with what they cover and what's simulated. `test/live/run.sh` builds a throwaway server, runs them and deletes it. The lists below come from earlier releases. They don't include `players.audience`, which has unit tests only so far.

**Passed on all three servers:**

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = "com.extantape"
version = "0.5.2"
version = "0.5.3"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(25))
Expand Down
13 changes: 13 additions & 0 deletions docs/decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,16 @@ Owner decisions for BlueMapHUD, newest first.
## 2026-11-14

- **Name (owner, D194, D196):** the plugin is renamed BlueMapMini, so it starts with BlueMap like BlueMapAuth and the other BlueMap add-ons. Released as 0.3.0. The owner asked that no old names be kept, so the Java package, commands, permissions, pack ID, player settings key and folder all use the new name, with no aliases or copies. Sharing stays off until HouseRules is 0.5.0, which hooks the new share event, so shares can never skip chat circles.

## 2026-11-30: Player dots can follow Posse (0.5.3)

A kids' safety design from the Games division, built as handed over. No new owner decision is recorded here.

- The 2026-11-07 row that keeps showing players within 512 blocks to everyone assumed that different groups of players never share a world. A server can't rely on that when it has shared worlds, so `players.audience: posse` filters the dots with Posse. `world` stays the default, so other servers don't change.
- **Dots follow circles only** (changed the same day, before release, after a safety review). The first build used Posse's reach check, the rule chat follows. That check also allows anyone in the same world unless the world is circle-only, so players in different circles saw each other's dots in a shared world. Dots now use `inSharedCircle`, added in Posse 0.11.3: a shared circle, or `posse.bypass` on either player. Posse with no circles set up allows everyone. Shares aren't changed and still follow chat.
- With `posse`, every doubt means no dots: Posse missing, disabled, older than 0.11.3 or without the circles check, not the owner of the registered service, or throwing. It never falls back to the reach check. One failed check drops all of that viewer's dots. A paused Posse refuses everyone through the circles check, bypass included. A Posse without the check is logged once, with no names.
- Only `world` and `posse` are accepted, read the way `share.audience` values are (trimmed, any case). Everything else is `posse`, including `off`.
- A typo never leaves the dots open (from a second safety review, the same day). A key that looks like `audience`, anywhere but `players.audience` and `share.audience`, means `posse`, whatever the right line says. A top-level `audience` is one of these. So is a repeated key. Other unknown keys under `players:` are only warned about. "Looks like" is a choice made in the build: any capitals, and up to two letters wrong, missing, extra or swapped, as the whole key or one word of it, and under `players:` any word starting "aud".
- The setting is read from `config.yml` itself. Bukkit hands out the jar's defaults for a broken file, which would turn the filter off. A readable file without the key stays `world`.
- Posse is found by reflection through the services manager, so there's still no load-order entry for it.

18 changes: 18 additions & 0 deletions docs/releases/v0.5.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# BlueMapMini 0.5.3

- **Player dots can follow Posse's circles.** The new setting `players.audience` takes `world` or `posse`. With `posse`, a player is a dot on your map only if you share a Posse circle, or either of you has `posse.bypass`. Being in the same world doesn't count, so this is stricter than chat: players in different circles never see each other's dots in any world, apart from that bypass. Every earlier rule still applies (same world, radius, permission, vanish, spectator, invisibility, hidden in BlueMap). This covers the minimap, the arrows at its edge and the fullscreen map. It needs Posse 0.11.3 or newer, the first version with a circles-only check.
- **Any doubt means no dots.** With `posse`, nobody is shown while Posse is missing, disabled, paused, older than 0.11.3 or failing a check. Any value other than `world` or `posse` counts as `posse`, and so does a `config.yml` that's invalid, empty or unreadable, because Bukkit would otherwise fall back to the jar's default. The console says why.
- **A typo doesn't leave the dots open.** A key that looks like `audience` and isn't `players.audience` or `share.audience` counts as `posse`, even beside `players.audience: world`: one at the left edge, one in the wrong section, or a spelling such as `audiance` or `Audience`. So does a `config.yml` with a setting written twice, because only the last copy would be read. Other unknown keys under `players:` get a console warning and change nothing. The spelling check allows up to two wrong letters.
- **Players are told.** When dots are off because Posse can't be asked, the console warns at most once a minute. A player who opens the fullscreen map, or runs `/hud show players` or `/hud` with the map hidden, sees "Other players aren't shown on the map right now, because the server's player group rules aren't answering." With a Posse older than 0.11.3, the console says once to update it, without naming anyone. While Posse is paused it answers no, so dots are hidden without that line or warning. Posse reports the pause itself.
- **Nothing changes until you turn it on.** The default is `world`, and an existing `config.yml` without the key stays `world`.

**To turn it on**, add this line under `players:` in `plugins/BlueMapMini/config.yml` (an existing file doesn't have it), then run `bluemapmini reload`:

```yaml
players:
audience: posse
```

The console should say "Player dots: only players Posse's circles allow." with no warning just above or below it. If Posse has no circles set up, it allows everyone.

Tested: 113 unit tests, including 36 new ones for reading the setting and its typos, filtering dots, every refusal, finding Posse and the positions the HUD's player list sends. Those use stand-in players, and the invisibility filter isn't among them because it needs a running server. On throwaway Paper 26.1.2, 26.2 and 26.3 servers, the live `posse` test passed 46/46 with the real Posse 0.11.3, decoding what each viewer is sent. It covers players in different circles, `posse.bypass` both ways, no circles, a paused, disabled or missing Posse, and two misspelled keys with their console warnings. The rest of the live suite passed 341/341 on each version, with one font check skipped because it needs a Minecraft client. Not tested: no live check covers a repeated key, a broken `config.yml` or an older Posse. Not seen in a real game client.
20 changes: 20 additions & 0 deletions docs/test-audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@

Kept by this repo's owning session (Minecraft: Plugins Lead), per `~/Code/CLAUDE.md`, "Test self-audits". Newest first.

## 2026-11-30: Player dots follow Posse (0.5.3)

Fails closed, so it's always covered. The unit tests passed (113). The live checks in `test/live/posse.js` passed 46/46 with the real Posse 0.11.3 on 26.1.2, 26.2 and 26.3, and the rest of the live suite passed 341/341 on each, with the client font check skipped.

| Promise | Covered by |
| --- | --- |
| With `posse`, a refused player gets no dot and an allowed one does | unit `PlayerDotsTest.aRefusedPlayerGetsNoDotAndAnAllowedOneDoes`, `HudDotsTest.onlyAPlayerTheCirclesCheckAllowsHasAPositionSent`; live one dot for each of two players in one circle, none for a player in another, none for a player in no circle, minimap and fullscreen map; `posse.bypass` seen and seeing; every dot when Posse has no circles |
| Dots follow circles only, never chat's reach check, so a shared world adds nobody | unit `PosseLinkTest.theCirclesCheckAnswersAndChatsCheckIsNeverUsed`; live in a world that isn't circle-only, chat reaches a player in another circle (control) and neither gets the other's dot. Posse's own unit tests cover what the circles check answers |
| A Posse without the circles check means no dots, said once with no names | unit `PosseLinkTest.aPosseWithoutTheCirclesCheckIsMarkedAsLackingIt`, `PlayerDotsTest.aPosseWithoutTheCirclesCheckMeansNoDotsAndIsSaidOnceWithNoNames` |
| No dots with Posse missing, disabled, unregistered, someone else's service, or throwing | unit `PosseLinkTest`, `PlayerDotsTest.aMissingPosseMeansNoDots`, `oneFailingCallDropsEveryDotIncludingOnesAlreadyAllowed`, `aFailingLookupMeansNoDots`, `HudDotsTest.noPosseAnOldPosseOrAFailingCheckSendsNoPositions`; live without Posse, and Posse disabled while the server runs |
| No dots while Posse is paused | unit `aPosseThatSaysNoToEveryoneAsItDoesWhilePausedLeavesNoDots`; live Posse started paused by a broken Posse config, with two bots given `posse.bypass` as they log in |
| Being allowed by Posse doesn't undo the other filters | unit `HudDotsTest.sharingACircleDoesNotBringBackAPlayerAnotherFilterHides` (vanished, spectator, hidden in BlueMap, out of range); the existing live suite covers invisibility |
| Posse is asked every time, so a change takes effect on the next frame | unit `posseIsAskedAfreshEveryTimeSoDisablingItDropsTheDots` |
| A bad value, and a broken, empty or unreadable config, count as `posse` | unit `DotRuleTest`; live a bad value |
| A misspelled or misplaced `audience` key, or a repeated key, counts as `posse`; other unknown keys under `players:` only warn; real settings and ordinary words elsewhere are left alone | unit `DotRuleTest.aTopLevelAudienceIsPosse`, `aTopLevelAudienceIsPosseEvenBesideAGoodSetting`, `aMisspelledKeyThatLooksLikeAudienceIsPosse`, `aLookalikeIsPosseWhateverItSaysAndBesideAGoodSetting`, `anAudienceInTheWrongSectionIsPosse`, `aRepeatedKeyIsPosse`, `anUnknownKeyUnderPlayersWarnsAndKeepsTheSetting`, `everyRealPlayersSettingIsKnown`, `ordinaryWordsElsewhereAreNotTakenForAudience`, `theShippedConfigSaysWorld`; live a misspelled `players.audience`, alone and beside `audience: world`, counts as `posse` and the console says so. No live check of a repeated or misplaced key |
| `world` and a config without the key behave as before | unit `DotRuleTest.aReadableFileWithoutTheSettingKeepsTheOldBehavior`, `PlayerDotsTest.worldLeavesTheListAloneAndNeverAsksPosse`; live `world` shows everyone |

- The unit tests call the filtering method with stand-in players. The live checks show what a bot's client is sent. No real game client has been used.
- Gap skipped: no live run with a Posse older than 0.11.3. It would need a second Posse jar, and the unit tests cover finding no circles check.
- Gap skipped: a broken `config.yml` isn't tried on a server. Bukkit would fall back to the jar's defaults for every setting, which opens the pack server on every address. `DotRuleTest` covers how the file is read.
## 2026-11-25: Posse rename (0.5.0)

| Promise | Covered by |
Expand Down
Loading
Loading