Repository navigation
Keep home worlds and a paused start fail closed (0.11.3) - #21
Merged
Merged
Conversation
…1.3) A missing home-worlds fallback sent players to the main world, which may be one they must not be in, and a config that failed at startup left home worlds unenforced. Now a player who can't be placed is disconnected with no join or leave line, and a paused start refuses joins without posse.bypass. Unit tests pass (166). The new bot checks have not been run on any server. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A safety review of 0.11.3 found ways a player could still get in or stay loose. The join check now goes in before anything that can fail, startup errors no longer disable the plugin, a second check runs at join, and a cancelled disconnect holds the player while it is retried. Home worlds can send a player to a named lobby that their group may use, and otherwise disconnects them. ReachService gains a circles-only check for map dots. Tested with ./gradlew build (214 unit tests) and node --check on the bot suites. No server was run: the new and changed bot checks are written and have not been run on 26.1.2, 26.2 or 26.3. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The owner's lobby rule (D368) wins over the older per-group fallback: a player outside the worlds their group may be in goes to the lobby when it is named, loaded and open to their group, and is disconnected otherwise. Players in no circle follow the same rule with the no-circle list. The last commit still tried the group's fallback first. An old fallback line never chooses a destination. The config loads with a warning and that entry's message is hidden while the line is there. A no-circle entry with only a fallback keeps that world allowed, so the upgrade opens and closes nothing. Tested: ./gradlew clean build (205 unit tests) and node --check on the bot scripts. Not tested: no server was run, so the updated home-worlds.js and reach-leaks.js checks have not been run on any version. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The check after a world change ran a tick late with the player still visible and able to chat. Teleports, portals and rides into a forbidden world are now cancelled, the later check makes the player pending at once, and a reload or start applies the rules to people already online. Anything that can't be decided is refused. 229 unit tests pass. No server was run. The calls from reload() and start() have no unit test, and no bot check drives a portal, a ride or the safety net. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Every circle now has its own home-worlds setting, so a circle with no entry lifts no limit, and a missing no-circle entry means lobby only. A pending or held player is out of the game until the move lands or they're gone, and a teleport refusal another plugin takes back is put back. A kick that takes a moment to go through is no longer reported as cancelled. 268 unit tests pass. Bot suites pass on 26.1.2 and 26.2. On 26.3 build 272 no leave line is logged, with this version or 0.11.2, so one suite.js and three presence-messages.js checks fail there. Not tested: walking or damage while held, stacked riders, start() with players online, or a real game client. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Posse 0.11.3 makes home worlds and a paused start fail closed. The CHANGELOG has the full list. Read its first line before upgrading with home worlds on: a circle with no entry now lifts no limit.
Tested: clean build with 268 unit tests and no failures, rerun by a second session, and the leak check. Bot suites ran on throwaway Paper servers with LuckPerms (26.1.2, 26.2, 26.3) in the building session and weren't rerun. On Paper 26.3 build 272 no leave line is logged, with this version or 0.11.2, so one
suite.jscheck and threepresence-messages.jschecks fail there.Not tested: walking or damage while held, stacked riders, an undecidable teleport check,
start()with players online, or a real game client.Disabling Posse still lifts its rules. That's a separate decision and isn't changed here.
🤖 Generated with Claude Code