Skip to content

Version 1.23.0#484

Open
tastybento wants to merge 18 commits intomasterfrom
develop
Open

Version 1.23.0#484
tastybento wants to merge 18 commits intomasterfrom
develop

Conversation

@tastybento
Copy link
Copy Markdown
Member

@tastybento tastybento commented Apr 5, 2026

Summary

  • Bump version to 1.23.0

Changes since 1.22.0

Test plan

  • Full test suite passes (mvn test)
  • Verify version is 1.23.0 in built jar

🤖 Generated with Claude Code

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Release/version bump to 1.23.0, updating addon metadata and refining UI/logging/test behavior to support recent feature work (action bar color support, Nexo integration, locale updates, and code quality improvements).

Changes:

  • Bump project version to 1.23.0 and update addon API metadata.
  • Refactor PhasesPanel and OneBlocksManager#getProbs() to reduce complexity and improve maintainability.
  • Update tests to align with Adventure Title usage and add additional safety assertions.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/test/java/world/bentobox/aoneblock/TestWorldSettings.java Add explicit no-op comment in stubbed method.
src/test/java/world/bentobox/aoneblock/listeners/StartSafetyListenerTest.java Add explicit no-op comments in stubbed methods.
src/test/java/world/bentobox/aoneblock/listeners/CheckPhaseTest.java Update assertions to verify Adventure Title usage.
src/test/java/world/bentobox/aoneblock/listeners/BlockListenerTest2.java Tighten tests with assertDoesNotThrow; minor visibility tweak.
src/main/resources/addon.yml Update declared BentoBox api-version.
src/main/java/world/bentobox/aoneblock/panels/PhasesPanel.java Refactor phase button creation into helper methods; simplify formatting logic.
src/main/java/world/bentobox/aoneblock/oneblocks/OneBlocksManager.java Refactor probability logging into smaller helper methods.
src/main/java/world/bentobox/aoneblock/listeners/CheckPhase.java Switch to Adventure titles and component-based requirement messages.
pom.xml Bump build version to 1.23.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 6, 2026

@tastybento I've opened a new pull request, #485, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 6, 2026

@tastybento I've opened a new pull request, #486, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 8 commits April 6, 2026 05:08
…custom translate() with LegacyComponentSerializer

Agent-Logs-Url: https://github.com/BentoBoxWorld/AOneBlock/sessions/3ae91a34-99b8-44ae-bdce-bc776883a2f9

Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Bump BentoBox dependency to 3.13.0 for MiniMessage support
… LegacyComponentSerializer)

Agent-Logs-Url: https://github.com/BentoBoxWorld/AOneBlock/sessions/e8854ea2-7b56-497a-ac76-533846ce7957

Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
…t.sendMessage()

Agent-Logs-Url: https://github.com/BentoBoxWorld/AOneBlock/sessions/b792d2e9-3944-46fa-9f8e-2339f94967e8

Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove custom translate() helper from CheckPhase — let BentoBox handle MiniMessage natively
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 7, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +525 to +526
"[starting-block]", biomeText,
BIOME, blockText,
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the default description branch, the placeholder replacements for [starting-block] and [biome] look swapped: "[starting-block]" is being replaced with biomeText and [biome] is being replaced with blockText. This will render the biome line where the starting-block line should be (and vice versa) in the phases GUI. Swap these arguments so [starting-block] maps to blockText and [biome] maps to biomeText (or to the translated biome line, depending on intended formatting).

Suggested change
"[starting-block]", biomeText,
BIOME, blockText,
"[starting-block]", blockText,
BIOME, biomeText,

Copilot uses AI. Check for mistakes.
Comment on lines 56 to 61
<mockito.version>5.11.0</mockito.version>
<mock-bukkit.version>v1.21-SNAPSHOT</mock-bukkit.version>
<!-- More visible way how to change dependency versions -->
<bentobox.version>3.10.0</bentobox.version>
<bentobox.version>3.13.0</bentobox.version>
<items-adder.version>4.0.10</items-adder.version>
<nexo.version>1.8.0</nexo.version>
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description says "BentoBox API upgraded to 3.10.0", but this change bumps the build dependency to 3.13.0. Please update the PR description (or adjust the version here) so the stated API upgrade matches what is actually being shipped.

Copilot uses AI. Check for mistakes.
Comment on lines 153 to 157
// Verify phase name change
assertEquals("Next Phase", is.getPhaseName());
// Verify title shown
verify(mockPlayer).sendTitle("Next Phase", null, -1, -1, -1);
verify(mockPlayer).showTitle(any(Title.class));

Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This verification only checks that some Title was shown, not that it contains the expected phase name. Consider capturing the Title argument and asserting the title component renders to "Next Phase" (and that subtitle/timings are as expected) so the test guards the behavior of setNewPhase() more effectively.

Copilot uses AI. Check for mistakes.
Comment on lines 186 to 190
// Verify phase name change
assertEquals("Next Phase", is.getPhaseName());
// Verify title shown
verify(mockPlayer).sendTitle("Next Phase", null, -1, -1, -1);
verify(mockPlayer).showTitle(any(Title.class));

Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here the test verifies showTitle(any(Title.class)) but does not assert that the Title contains the expected phase name. Capturing the Title and checking its contents would prevent regressions where the wrong text is shown (or where the call is made with an empty title).

Copilot uses AI. Check for mistakes.
Comment on lines 219 to 223
// Verify phase name change
assertEquals("Next Phase", is.getPhaseName());
// Verify title shown
verify(mockPlayer).sendTitle("Next Phase", null, -1, -1, -1);
verify(mockPlayer).showTitle(any(Title.class));

Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assertion only checks that showTitle(...) was invoked, but not what was shown. To ensure setNewPhase() displays the correct phase title when player is null (owner fallback), capture the Title argument and assert its title text matches "Next Phase".

Copilot uses AI. Check for mistakes.
Comment on lines 252 to 256
// Verify phase name change
assertEquals("Next Phase", is.getPhaseName());
// Verify title shown
verify(mockPlayer).sendTitle("Next Phase", null, -1, -1, -1);
verify(mockPlayer).showTitle(any(Title.class));

Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the other setNewPhase tests: showTitle(any(Title.class)) doesn't verify the shown title content. Capturing and asserting the Title argument (e.g., that it renders the new phase name) will make this test actually validate the behavior.

Copilot uses AI. Check for mistakes.
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.

3 participants