Skip to content

Fix /boxadmin place permission - #140

Merged
tastybento merged 1 commit into
developfrom
fix/place-permission
Nov 16, 2026
Merged

tastybento merged 1 commit into
developfrom
fix/place-permission

Conversation

@tastybento

Copy link
Copy Markdown
Member

AdminPlaceStructureCommand called setPermission("boxed.commands.boxadmin.place"). CompositeCommand.setPermission() adds the game mode's permission prefix, so the real node was boxed.boxed.commands.boxadmin.place. It also wasn't declared in addon.yml, so only operators could use the command, and a permission plugin grant had to use the doubled name.

  • The permission is now admin.place → boxed.admin.place, matching the other admin commands.
  • It's declared in addon.yml with default: op.
  • AdminPlaceStructureCommandTest.testSetup expects the new permission. The test passes (mvn -Dtest=AdminPlaceStructureCommandTest test).

Servers that granted the old doubled node to non-operator staff will need to grant boxed.admin.place instead.

🤖 Generated with Claude Code

setPermission() is prefixed with the game mode's permission prefix, so
'boxed.commands.boxadmin.place' became 'boxed.boxed.commands.boxadmin.place'.
Use 'admin.place' (boxed.admin.place) like the other admin commands and
declare it in addon.yml with default op.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

tastybento added a commit to BentoBoxWorld/docs that referenced this pull request Nov 15, 2026
@tastybento
tastybento merged commit 4022739 into develop Nov 16, 2026
3 checks passed
@tastybento
tastybento deleted the fix/place-permission branch November 16, 2026 00:52
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