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

## 0.11.3

- **Read this before upgrading with home worlds on: an adult circle with no entry becomes restricted until it gets `unlimited: true`.** Before, a player in any circle without an entry was never moved.
- **Every circle has its own setting.** An entry lists `worlds`, or says `unlimited: true` for no limits. A player in any unlimited circle has no limits. Anyone else may be in every world listed by any of their circles. A circle with no entry adds nothing and lifts nothing, so putting a kid in a new circle can't free them. A player whose circles all add nothing is treated like a player in no circle. An entry with both keys, neither, `unlimited` set to anything but `true`, an empty or unreadable `worlds`, or a circle written twice adds nothing and is named in a warning. Most of those were config errors before. A section with only such entries stays on. `no-circle` always needs `worlds` and can't be unlimited. Startup and reload name every circle with no entry, and `/posse status` (also with `--json`, under `settings`) shows each circle's setting. `config.yml` has a commented example.
- **Home worlds now sends players only to the lobby.** A player found outside the worlds their group may be in, on join, respawn or world change, goes to the server's lobby only if it's named, loaded and in their group's worlds (the `no-circle` list for players in no circle). Otherwise they're disconnected with "Sorry, we couldn't get you to your world. Please join again." and no join or leave line goes out. Before, they were moved to a per-circle fallback, and a fallback that wasn't loaded led to the main world's spawn, which also left a player already there where they were. The main world is now used only if it is the named, allowed lobby. A move that ends in an error now disconnects too. The log says why and names no player.
- **New `lobby-world` setting** (default `""` for none). `no-circle` now takes a `worlds` list. `/posse status` shows the lobby, and the config warns when no lobby is set with home worlds on, or when the lobby is missing from a group's list. New message `home-lobby`; `home-moved` is gone.
- **Teleports, portals and rides into a forbidden world are refused.** With home worlds on, a teleport or portal that would take a player somewhere they may not be is cancelled, as is moving a boat, minecart or mount that carries them. It is also refused when Posse can't work out the answer. The player isn't told, and the log notes only a refusal caused by an error, once. Posse's own lobby move still goes through. If a start couldn't read the config, only `posse.bypass` can teleport until a good reload.
- **The look after a world change is a safety net with no open gap.** A player who arrives where they may not be is pending from the moment of the world change. Before, that began only after the move. A Posse move that reports success but leaves the player somewhere forbidden disconnects them. If their rules or permissions can't be read, they're disconnected.
- **A pending player is out of the game.** While a move or the first-join check is pending, and while a disconnect is being retried, nobody sees the player's character, name tag or Tab entry, and they see no other player's. They can't move, chat, run commands, interact, change blocks, take or deal damage, drop or pick up items (arrows too), or use inventories. They're taken off what they ride and their inventory is closed. Everything is restored when the move lands. A move that can't start, fails, breaks or takes more than ten seconds disconnects them. A check that breaks disconnects too.
- **A refusal another plugin takes back is put back.** After every other priority, Posse cancels the teleport again and points it back at where it started, and does the same if a plugin changed an allowed destination to a forbidden one. The log notes this once.
- **No `no-circle` entry now means lobby only.** With home worlds on, a player in no circle, including one whose groups aren't reported, may be only in the lobby, and is disconnected if there is none. Before, they were never moved. **Add `no-circle` with a `worlds` list before upgrading if staff or others in no circle need more.** Startup warns when the entry is missing.
- **A reload applies to people already online.** After `/posse reload`, and when Posse starts with players online, everyone is checked and anyone in a forbidden world goes to the lobby or is disconnected.
- **A start with a config that can't be read now refuses joins** without `posse.bypass`, operators included, with "The server's safety rules didn't load, so joining is paused. Please try again later." Before, nobody was moved while paused. This applies with or without home worlds, and has no setting. Fix the file and run `posse reload` from the console. The login check uses `PlayerLoginEvent` at HIGHEST, which Paper has deprecated, and Paper changes how it handles logins while a plugin listens to it, so it's registered only until startup has finished with working rules. A second check at join catches a login another plugin allowed again.
- **A startup that fails keeps the door shut.** The join check is registered before anything else, and no startup error escapes to Paper, which would disable the plugin along with its checks. A later failure leaves Posse enabled with joins paused until a restart. If the join check can't be registered, the server is shut down. An error while Java loads the plugin class itself can't be caught.
- **A cancelled disconnect no longer leaves a player loose.** If another plugin cancels the kick, Posse retries every 10 ticks and holds the player meanwhile: movement, teleports, interaction, blocks, chat, commands, writing, damage, items and inventories are cancelled at HIGHEST, and they reach nobody. A warning is logged once, only if the player is still there at a retry, and names nobody.
- **Respawn:** when a player must be disconnected while respawning, the respawn point is set back to the world they died in if their group may be there. If neither world is allowed, Paper's API can't stop the position being saved; the player is held until gone and checked at the next join.
- **API:** `ReachService.inSharedCircle(viewer, to)`, a circles-only check for things such as map dots. True for yourself, a shared circle or either side's `posse.bypass`; the same world doesn't count; true with no circles set up; false while paused, for a player being placed or disconnected, or on an error. Chat is unchanged.
- **Upgrading with home worlds on:** set `lobby-world` and add it to each group's `worlds`, or anyone found outside their worlds is disconnected. That includes someone with no bed who dies in their own world and would respawn in the main world. The old `fallback` lines never choose a destination. The config loads, warns until they're removed, and doesn't show that entry's `message` meanwhile. A `no-circle` entry with only a `fallback` still allows that world until you write it under `worlds`. A circle entry needs `worlds` or `unlimited: true`; without either it adds nothing and a warning names it. A circle fallback that isn't in its worlds used to be an error and now only warns, since it grants nothing.
- An existing `config.yml` loads and keeps its own message wording. The built-in `home-lobby` wording is used when it's missing, and a leftover `home-moved` message is not used. The built-in `admin-paused` and `admin-reload-failed-paused` messages now mention joining.
- Tested: `./gradlew build` (268 unit tests, none skipped), then the bot suites on throwaway Paper servers with LuckPerms. `home-worlds.js` passed 194/194, `reach-leaks.js` 64/64 and `book-authors.js` 18/18 on 26.1.2, 26.2 and 26.3. `suite.js` passed 87/87 on 26.1.2 and 26.2 and 86/87 on 26.3. `presence-messages.js` passed 6/6 on 26.1.2 and 26.2 and 3/6 on 26.3. `home-worlds.js` now uses a real nether portal with a boat, a minecart, a horse and a thrown pearl, and `suite.js` makes startup fail with a stand-in BlueMapMini.
- **Leave lines on Paper 26.3 build 272 (`d749869`):** every 26.3 failure is a missing leave line. No server log from the 26.3 runs has one, `presence: everyone` included, and the released 0.11.2 jar fails the same three `presence-messages.js` checks. 0.11.2 passed them on an earlier 26.3 build. That build wasn't tried without Posse, so the cause isn't known. On this build, checks that expect no leave line prove nothing. Look into this before moving a server to it.
- **Not tested:** `suite.js` skips sign text, anvil renames and graves (no LanternGraves jar). No bot check covers walking or damage while pending, because the bots send no movement and the test helper cancels damage. None covers stacked riders, a teleport check that can't be decided, unreadable permissions at a world change, a circle written twice, an unlimited `no-circle`, the missing-circle warning at startup, or `start()` with players online. Bots on 26.3 can't use blocks. The calls to the online re-check from `reload()` and `start()` have no unit test, and neither does the plugin's own startup wiring. `inSharedCircle` has no bot check here; BlueMapMini's dot suite uses it. No real game client has seen this version.

## 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.
Expand Down
Loading
Loading