Repository navigation
Op and permission bypass; honor game mode setting requests - #186
Merged
Merged
Conversation
Operators, and players with [gamemode].border.bypass, are no longer pulled back inside when they go beyond the border. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git
A game mode can ask for how the border behaves in its worlds through BentoBox's getRequestedSettings: bounce-back, return-teleport, return-teleport-safety-block, use-barrier-blocks, show-max-border, show-particles and barrier-offset. The config file is not changed and other game modes keep the configured settings. The border type, color and visibility stay each player's choice. 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.12.0. 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.
Bypass
Operators, and players with
[gamemode].border.bypass, are no longer pulled back inside when they go beyond the border. The permission is added toaddon.ymland defaults to op.Game mode requests
A game mode can ask for how the border behaves in its worlds through BentoBox's new
getRequestedSettings.bounce-back,return-teleport,return-teleport-safety-block,use-barrier-blocks,show-max-border,show-particles,barrier-offset.disabled-gamemodes.game-mode-requestsconfig section turns requests off altogether (allow: false) or for named game modes (ignore).Testing
return-teleport: true, which is the default, so a request that changes behaviour has only been covered by unit tests.🤖 Generated with Claude Code
https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git