Skip to content

Op and permission bypass; honor game mode setting requests - #186

Merged
tastybento merged 4 commits into
developfrom
feature/op-bypass
Nov 25, 2026
Merged

tastybento merged 4 commits into
developfrom
feature/op-bypass

Conversation

@tastybento

@tastybento tastybento commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

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 to addon.yml and defaults to op.

Game mode requests

A game mode can ask for how the border behaves in its worlds through BentoBox's new getRequestedSettings.

  • Can be asked for: bounce-back, return-teleport, return-teleport-safety-block, use-barrier-blocks, show-max-border, show-particles, barrier-offset.
  • Cannot be asked for: the border type, color and visibility, which are each player's choice, and disabled-gamemodes.
  • The config file is not changed and other game modes keep the configured settings.
  • What was asked for is logged at startup.
  • A new game-mode-requests config section turns requests off altogether (allow: false) or for named game modes (ignore).

Testing

  • Unit tests pass, with new ones for the bypass and for requests.
  • Booted a Paper 26.3 server with Boxed: the request was logged. Boxed asks for return-teleport: true, which is the default, so a request that changes behaviour has only been covered by unit tests.
  • Played as an operator to check the bypass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HBXcjZkd22rGNW5ZyL1git

tastybento and others added 2 commits November 24, 2026 17:40
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
@tastybento tastybento changed the title Let operators and players with a bypass permission leave the border Op and permission bypass; honor game mode setting requests Nov 25, 2026
tastybento and others added 2 commits November 24, 2026 18:03
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
@sonarqubecloud

Copy link
Copy Markdown

@tastybento
tastybento merged commit c0f9ade into develop Nov 25, 2026
3 checks passed
@tastybento
tastybento deleted the feature/op-bypass branch November 25, 2026 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant