Repository navigation
Team-member island switching; honor game mode option requests - #71
Merged
Merged
Conversation
Island-specific inventories, advancements and the rest were only switched for the owner of an island. Team members kept whatever they had, so a member of two islands carried one set of data between them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
A game mode can ask for the options it needs through BentoBox's getRequestedSettings. InvSwitcher then hooks into that game mode's worlds and uses the requested options there only. The config file is not changed and other worlds keep the configured options. Money, the economy and the worlds list cannot be asked for. The new game-mode-requests section of the config turns requests off altogether or for named game modes. Builds against BentoBox 3.25.0 and still runs on older versions, where there are no requests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
BentoBox 3.25.0 is built for Java 25, so depending on it broke the build here. The request method is now found by name on the game mode and the requests are applied by a class in this addon, so the BentoBox dependency goes back to 3.17.0-SNAPSHOT. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
|
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.



The game mode requests only do something with BentoBoxWorld/BentoBox#3145, which adds the method game modes use to ask. This PR does not need it to build or run: the method is looked up by name, so the addon stays on its current BentoBox version and Java 21.
Team members
Island-specific inventories, advancements and the other per-island options were only switched for the owner of an island. A team member of two islands carried one set of data between them.
Store.isOnTeam(island, uuid)replaces the owner checks.Game mode requests
A game mode can ask for the options it needs through BentoBox's new
getRequestedSettings.worldslist.options.*can be asked for, and not money. The economy and the worlds list are the admin's.game-mode-requestsconfig section turns requests off altogether (allow: false) or for named game modes (ignore).Testing
worldslist: InvSwitcher hooked into the Boxed worlds and logged the requested option.🤖 Generated with Claude Code
https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git