Skip to content

Declare the border colour and bordertype permissions - #180

Merged
tastybento merged 1 commit into
developfrom
fix/179-border-permission-declarations
Jul 27, 2026
Merged

Declare the border colour and bordertype permissions#180
tastybento merged 1 commit into
developfrom
fix/179-border-permission-declarations

Conversation

@tastybento

Copy link
Copy Markdown
Member

Found while investigating #179.

addon.yml did not declare the permissions the commands actually check:

  • [gamemode].border.color — checked by BorderColorCommand (both /[gamemode] border color and /[gamemode] bordercolor). Undeclared, so it had no default and fell back to op only, which contradicts the documentation and stopped players from using the command at all. Declared true, with the colours themselves gated as documented.
  • [gamemode].border.color.red|green|blue — checked in BorderColorCommand#execute, documented as op. Now declared.
  • [gamemode].bordertype was declared but is never checked: BorderTypeCommand asks for border. + its label, i.e. [gamemode].border.bordertype. Renamed the declaration to the permission that is really used, keeping its false default.

This is not the cause of the exception in #179 — that is BentoBoxWorld/BentoBox#3042 — but it is why the colour command was unusable for the reporting player in the first place.

Border's tests pass (104 tests, 0 failures).

🤖 Generated with Claude Code

https://claude.ai/code/session_01E6rYr6Z66LQz9XTbnbUupy

The permissions the commands actually check were missing from addon.yml, so
they had no declared default and fell back to op only - which contradicts the
documentation and stops a player from using /[gamemode] border color at all.

[gamemode].bordertype was declared but never checked: BorderTypeCommand asks
for border. + its label, i.e. [gamemode].border.bordertype.

Found while tracing #179.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E6rYr6Z66LQz9XTbnbUupy
@sonarqubecloud

Copy link
Copy Markdown

@tastybento
tastybento merged commit 3372630 into develop Jul 27, 2026
3 checks passed
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