Skip to content

Release 1.26.3

Choose a tag to compare

@tastybento tastybento released this 29 Jul 15:55
· 23 commits to master since this release
8daea73

🎁 What's new

This is a small bug-fix release for the phases GUI. Players who are not allowed to change their phase were still being told they could β€” /ob phases offered the "Click to change" tooltip to everyone, and clicking it produced a permission error instead of a phase change.

πŸ› The fix

"Click to change" is only offered when the click can succeed (PR #545)

The phases panel decided whether to offer the SELECT action from island state and phase requirements alone β€” whether the player was on their island, whether the phase had already been reached, and whether its requirements were met. It never checked whether the player held the permission of the setcount command that the click actually runs. On servers where aoneblock.island.setcount is negated for some or all ranks, players saw the tooltip on every eligible phase and got "You don't have the permission to execute this command" when they clicked.

The panel now resolves the setcount subcommand and checks its permission before offering the action, so the tooltip appears only for players who can use it. If the subcommand cannot be resolved for any reason, the panel stays permissive as before and lets the command's own permission check decide β€” no phase becomes unclickable because of this change.

Players who do hold the permission see no difference.

This is the same defect that was fixed in ChunkBlock (ChunkBlock #11); that panel was derived from this code and both carried the missing check.

βš™οΈ Compatibility

βœ”οΈ BentoBox API 3.15.0+
βœ”οΈ Minecraft 1.21.5 or later β€” the Sulfur Caves phase itself activates on Minecraft 26.2+
βœ”οΈ Java 21

πŸ“₯ How to update

  1. Take backups of your server, for safety
  2. Stop the server
  3. Drop the new jar into your addons folder and delete the old one
  4. Start the server
  5. You should be good to go!

No config, locale or phase file changes are needed.

What's Changed

  • Only offer 'Click to change' in the phases GUI to players who can use it by @tastybento in #545

Full Changelog: 1.26.2...1.26.3