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
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.11.2

- **Death and advancement lines follow circles** (K832). While circles are in use, whatever `presence` says, a line the server would send to everyone about a player goes only to players Posse says may reach that player, and to the console and log. A death line that names whoever dealt the last blow needs both players in reach. Before, a kid's death line reached every adult online, and the other way round. If Posse can't decide (the config couldn't be read at startup, or a player can't be read), only the player themself and players with `posse.bypass` get the line. The player who died still sees the cause on the death screen. Posse acts last (MONITOR), on the line as other plugins left it, so a line another plugin removed stays removed. A team's death message setting and the `show_death_messages` game rule still apply.
- **Tab offers only names in reach.** While circles are in use, pressing Tab in any command offers only players the asker may reach. Before, Tab after `/msg`, `/tell`, `/w` and their namespaced forms offered every online name, even though the message itself was refused. The server's answer is filtered just before it's sent, so vanilla commands, other plugins' completers and the default online-player list are all covered. Paused, nobody but the asker is offered, unless they have `posse.bypass`. With `presence: reach`, a player the viewer may not see who is in another world is also hidden from the viewer's game, because a real game offers the names it knows without asking the server. Players in the same world stay visible and only leave the player list.
- **`/list` and the server list follow presence.** With `presence: reach`, `/list` in any form, `minecraft:list` included, answers like `/circles`, except for players with `posse.bypass`. The server list sample is empty and the player count is kept.
- **A returning player moved on join is announced only after the move.** With home worlds on, a returning player who has to be moved is held like a new kid until the move is done, so their join line goes out for where they end up. If the move fails and they're disconnected, nobody is sent a join or leave line naming them.
- No config key changed. Not covered: a plugin that sends its own line about a player. On the second server the line naming a disconnected new player came from EssentialsX's new-player welcome (`newbies.announce-format`); turn it off there.
- Tested: `./gradlew build` (139 unit tests, including the new `AnnouncementsTest` and `NameSuggestionsTest`), and on throwaway Paper 26.1.2, 26.2 and 26.3 the new `reach-leaks.js` bot suite (63 checks: a control with no circles, then refused pairs, allowed pairs, bypass and paused rules for death and advancement lines, Tab after seven commands, the players each game is told about, `/list`, the server list sample, a returning kid moved or disconnected at join, and the dead player's own death screen). On 0.11.1 it failed 27 of 63 on all three versions; on 0.11.2 it passed 63 of 63 on all three. The existing suites passed on all three: suite.js 84/84 (3 skipped, the LanternGraves checks), presence-messages.js 6/6, home-worlds.js 58/58 and book-authors.js 18/18. Not tested: a real game client's own Tab menu (a bot has none, so the test reads which players the bot's game was told about), a death line with a player killer on a server (unit only), and EssentialsX, which the test servers don't run.
- On a throwaway copy of the main server with its own config (127.0.0.1, offline mode, two made-up kids and two made-up adults, counts only), 0.11.1 offered a name across the kid and adult line in 12 of 12 Tab answers, told each side's game about 2 of 2 players on the other side, sent each advancement line to 2 of 2 players on the other side, and named 4 players in the server list. 0.11.2 brought each of those to 0, with circle-mates still offered and sent their lines. Death lines didn't cross there on either version, because that server has them off in most worlds and some plugin there removes the line in the two hubs where they're on; 0.11.2 left that as it was.

## 0.11.1

- **A new kid lands where first-spawn puts them** (D297). With `home-worlds` on, a player's first-ever join is now checked 20 ticks (one second) after they join, not at the join, so WelcomeWagon or Multiverse's first-spawn places them first. A new kid placed in an allowed world, such as the lobby, stays there and is told nothing. One placed anywhere else is moved to their fallback as before. A returning player is still checked at the join itself, so nobody who has played before waits a second in a wrong world. If the player quits before the check, nothing happens. If the move doesn't go through, they are disconnected, as before. The respawn and world-change checks are unchanged.
Expand Down
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Chat rules for family and community Paper servers. Players hear people in the same world, plus anyone who shares a "circle" with them, so groups such as families or age groups keep their own conversations across every world.

**Status:** pre-release. Version 0.11.1 (new kids are checked a second after joining, so first-spawn places them first) passed the unit tests and every bot suite on throwaway Paper 26.1.2, 26.2 and 26.3. Before that, it passed its acceptance tests on throwaway Paper 26.2 and 26.3 servers, using protocol bots with LuckPerms: chat and private messages for every pair of players, who sees whom in the player list and join messages (`presence: reach`), home worlds on rejoin, respawn and teleport, replies, blocked commands, the word filter and its bypass, masking adults' words for kids, books, `/circles`, reloads, a broken config, and 20 bots chatting at once. BlueMapMini's share was tested with a stand-in plugin here; the real BlueMapMini 0.3.0 and Posse 0.5.0 haven't been run together yet. Signs and anvil renames weren't tested. It hasn't been seen in a real game client yet, so the wording and colours haven't been checked by a person. See [the live tests](test/live/README.md) and the [test audit](docs/test-audit.md).
**Status:** pre-release. Version 0.11.2 (death and advancement lines, Tab, `/list` and the server list follow circles) passed the unit tests and every bot suite on throwaway Paper 26.1.2, 26.2 and 26.3, including a new one for those leaks, which 0.11.1 fails. Before that, it passed its acceptance tests on throwaway Paper 26.2 and 26.3 servers, using protocol bots with LuckPerms: chat and private messages for every pair of players, who sees whom in the player list and join messages (`presence: reach`), home worlds on rejoin, respawn and teleport, replies, blocked commands, the word filter and its bypass, masking adults' words for kids, books, `/circles`, reloads, a broken config, and 20 bots chatting at once. BlueMapMini's share was tested with a stand-in plugin here; the real BlueMapMini 0.3.0 and Posse 0.5.0 haven't been run together yet. Signs and anvil renames weren't tested. It hasn't been seen in a real game client yet, so the wording and colours haven't been checked by a person. See [the live tests](test/live/README.md) and the [test audit](docs/test-audit.md).

- Requires Paper 26.1 or newer and Java 25. Paper 1.21.11 and older aren't supported.
- With no circles set up it changes nothing about who hears whom, so it's safe to install first and configure after.
Expand All @@ -26,7 +26,16 @@ Otherwise they can't. A world group is a world with its Nether and End (`surviva
- Commands that would reach the whole server, `/me` and `/teammsg` by default, are off while circles are in use.
- BlueMapMini's `/hud share`, if BlueMapMini is installed, goes only to players who could hear you in chat. BlueMapMini keeps sharing off until Posse is 0.5.0 or newer.

**Who's online (optional).** With `presence: reach` in `config.yml`, the player list (Tab) and join and leave messages follow the same rule: you only see players you could chat with. A kid and an adult who share no circle don't see each other online. It's checked on join, leave and world change, and every two seconds for circle changes, so no relog is needed. If the config can't be read at startup, nobody is shown to anyone until it's fixed. The default, `presence: everyone`, leaves both as in vanilla. Death and advancement messages and a player's name above their head aren't covered.
**Who's online (optional).** With `presence: reach` in `config.yml`, the player list (Tab) and join and leave messages follow the same rule: you only see players you could chat with. A kid and an adult who share no circle don't see each other online. It's checked on join, leave and world change, and every two seconds for circle changes, so no relog is needed. If the config can't be read at startup, nobody is shown to anyone until it's fixed. The default, `presence: everyone`, leaves these as in vanilla. With `presence: reach`:

- A player's game is told nothing about a player they may not see who is in another world. The game offers every name it has been told when you press Tab, in chat or after a command, so taking a player off the list isn't enough. Two players in the same world who may not see each other, such as strangers in a circle-only lobby, still see each other walk by, name above the head included. They only leave each other's list.
- `/list`, in any form, answers like `/circles`: the players who can hear you. Players with `posse.bypass` get the server's own list. Other plugins' list commands under other names, such as `/who` or `/online`, aren't covered. Add those to `blocked-commands`.
- The server list shows the player count and no names, because Posse can't tell who is looking.
- A returning player whom home worlds has to move is announced once the move is done, for where they end up. If the move fails and they're disconnected, nobody is told they joined or left.

**Death and advancement lines.** While circles are in use, whatever `presence` says, a line the server would send to everyone about a player goes only to the players who may reach them, and to the console and log. A death line that names whoever dealt the last blow needs both players in reach. If the config can't be read at startup, only the player themself and players with `posse.bypass` get the line. The player who died still sees the cause on the death screen. Posse acts on the line as other plugins left it, so a plugin that removes or replaces death lines keeps doing so. A team's death message setting and the `show_death_messages` game rule still apply.

**Names on Tab.** While circles are in use, pressing Tab in any command offers only the names of players you may reach. That covers `/msg`, `/tell`, `/w` and their namespaced forms such as `minecraft:msg`, and every plugin command that offers online players. It's checked on the finished list the server is about to send, so it doesn't matter which plugin made it. A suggestion that isn't a player but is spelled like the name of one out of reach, such as a warp, is left out too. A game also offers the names it already knows without asking the server, which is what `presence: reach` above closes. With `presence: everyone` every game knows every name, as in vanilla.

**Home worlds (optional).** For a server where a kids' group must never end up in an adults' world. Players rejoin where they logged out, and a world plugin often checks access only when you teleport, not when you join. With a `home-worlds` section in `config.yml`, Posse steps in when someone is in a world their circle doesn't allow:

Expand Down Expand Up @@ -106,6 +115,9 @@ if (rules == null || rules.mayReach(from, to)) { /* send it */ }

## Limits

- A plugin that sends its own line to every player, without going through the server's join, quit, death or advancement events, isn't covered. EssentialsX's welcome for new players (`newbies.announce-format`) is one: turn it off there.
- Admins and ops without `posse.bypass` aren't offered the names of players out of their reach on Tab either, in any command. They can still type a name in full.
- A pet's death line goes to its owner as in vanilla, and can name the player who killed it.
- Book pages aren't checked for names, and a book moved into a chest shows its author to anyone else looking at that chest for one tick.
- Signs are readable by anyone who walks past, and a book or named item can be carried to another world. Posse only checks them when they're written.
- Chat plugins that send messages their own way, rather than through Paper's chat event, aren't covered. Add their message commands to `private-message-commands`.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "com.extantape"
version = "0.11.1"
version = "0.11.2"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(25))
Expand Down
8 changes: 8 additions & 0 deletions docs/decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,11 @@ After the Trust and Safety review of the rename, the owner chose:
## 2026-11-25: New kids and the lobby

- **Fix it in Posse (owner, D297, "Fix it in Posse (Recommended)"):** with home worlds on, a first-ever join landed in the kids' fallback world instead of the lobby, because Posse moved the kid before WelcomeWagon or Multiverse placed them. A first-ever join is now checked 20 ticks after joining; a returning player is still checked at once. The kid is never left in a world they aren't allowed in: the check still moves or, if it can't, disconnects. Released as 0.11.1.

## 2026-11-27: Names that reach past circles (K832)

- **Every line or suggestion naming a player follows reach (K832).** A bot run on a copy of the second server found three ways a name crossed between kids and adults who share no circle: death lines went to everyone, Tab after `/msg` and the other message commands offered every online name, and a new player disconnected at join was named to everyone. Posse now treats each like chat: a viewer gets the line or the name only if Posse says they may reach that player. The console and log keep every line. When Posse can't decide (rules paused, or a player it can't read), only the player themself and players with `posse.bypass` get it. Released as 0.11.2; no config key changed.
- Choices made in the build: death and advancement lines follow reach whatever `presence` says, because they can name a kid on any server with circles. A death line that names a killer needs both players in reach. Paper sends one death message to everyone or no one, so Posse takes it off the event and sends it itself, and puts it on the death screen of the player who died. Posse reads the line last (MONITOR), so a line another plugin removed is never brought back. Team death message visibility and the `show_death_messages` game rule still apply.
- Tab is closed in two places. Paper's `AsyncPlayerSendSuggestionsEvent` filters every list the server sends, for any command and plugin. A real game answers vanilla player arguments from its own list of known players, without asking the server, so with `presence: reach` a player out of sight in another world is hidden from the viewer (`hideEntity`), which takes them out of that list. Players in the same world stay visible and only leave the player list, so nobody turns invisible beside you.
- With `presence: reach`, `/list` in any namespaced form answers like `/circles`, and the server list sample is empty with the count kept. A returning player who must be moved by home worlds is held like a new kid until the move is done, so a failed move and the disconnect name them to nobody.
- Not covered by Posse: a plugin that broadcasts its own line about a player. The leak found at join on the second server was EssentialsX's new-player welcome (`newbies.announce-format`), sent by EssentialsX itself. Turning it off there is a server config change, which waits for the owner's go.
19 changes: 19 additions & 0 deletions docs/test-audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@
Kept by this repo's owning session (Minecraft: Plugins Lead), per `~/Code/CLAUDE.md`, "Test self-audits". Newest first.


## 2026-11-27: names that reach past circles (0.11.2, K832)

| Promise | Covered by |
| --- | --- |
| A death line reaches only players who may reach the dead player (refused pair, allowed pair, bypass), and the console keeps it | unit `AnnouncementsTest`; bot `reach-leaks.js`, "Death lines follow reach" (fails on 0.11.1) |
| A death line naming a killer needs both in reach | unit `AnnouncementsTest.aLineThatNamesAKillerNeedsBothToBeInReach` |
| An advancement line follows the same rule | unit; bot, "Advancement lines follow reach" (fails on 0.11.1) |
| Paused or unreadable: only the player and bypass get the line | unit `pausedRulesReachOnlyThePlayerAndBypass`, `aViewerPosseCannotWorkOutGetsNothing`, `aLinePosseCannotWorkOutStillReachesThePlayerAndBypassOnly`; bot, paused part |
| Tab offers only names in reach, for vanilla, namespaced and plugin commands, any letter case or quoting; bypass gets everyone | unit `NameSuggestionsTest`; bot, "Tab offers only names in reach" over seven commands (fails on 0.11.1) |
| Paused or unreadable: Tab offers only the asker, unless bypass | unit; bot, paused part |
| With `presence: reach`, a player's game is told of nobody out of sight in another world; same-world players stay visible and unlisted; circle changes follow within seconds | unit `PresenceTest.aPlayerOutOfSightIsKeptFromTheGame...`; bot, "A player's game is told nothing" (fails on 0.11.1) |
| `/list` in any form answers like `/circles`, bypass gets the full list; the server list sample is empty | unit `CommandRulesTest.thePlayerListCommandIsRecognizedInEveryForm`; bot, "/list follows reach" and "The server list" (fail on 0.11.1) |
| A returning player moved on join is announced after the move; a failed move names them to nobody | bot, "A returning player" and "A player disconnected while joining" (the second fails on 0.11.1) |
| With no circles nothing is filtered | unit `withNoCircles...` in both new tests; bot control part |
| The dead player's own death screen keeps its cause line | bot, "the kid's own death screen still says how they died" |
| A death line another plugin removed stays removed (Posse reads it at MONITOR) | a throwaway copy of the main server, where a plugin removes it in the hubs: same counts on 0.11.1 and 0.11.2 (no bot test here, since it needs that plugin) |

Gaps: a bot has no Tab menu of its own, so what a real game offers by itself is read from the players the bot's game was told about, not from a real client. A pet's death line and lines that plugins broadcast themselves (EssentialsX's new-player welcome) aren't Posse's to filter, and are listed as limits. The death line with a player killer is unit-tested only; no bot kills another. Sleep messages carry counts, never names, so they need no test.

## 2026-11-25: first join and old nodes (0.11.1, D297)

| Promise | Covered by |
Expand Down
Loading
Loading