From a54d174908b3bbd04d9a8b7ae496d9a354e7f46b Mon Sep 17 00:00:00 2001 From: tastybento Date: Mon, 27 Jul 2026 08:34:23 -0700 Subject: [PATCH] Declare the border colour and bordertype permissions 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 BentoBoxWorld/Border#179. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01E6rYr6Z66LQz9XTbnbUupy --- src/main/resources/addon.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/main/resources/addon.yml b/src/main/resources/addon.yml index aca8f56..a0d2570 100644 --- a/src/main/resources/addon.yml +++ b/src/main/resources/addon.yml @@ -15,6 +15,18 @@ permissions: '[gamemode].border.type': description: Player can use border type setting command default: true - '[gamemode].bordertype': + '[gamemode].border.bordertype': description: Player can use bordertype command to change the border type - default: false \ No newline at end of file + default: false + '[gamemode].border.color': + description: Player can use border color setting command + default: true + '[gamemode].border.color.red': + description: Player can set their border color to red + default: op + '[gamemode].border.color.green': + description: Player can set their border color to green + default: op + '[gamemode].border.color.blue': + description: Player can set their border color to blue + default: op \ No newline at end of file