Skip to content

Release 2.1.0 - #17

Merged
tastybento merged 8 commits into
masterfrom
develop
Aug 21, 2026
Merged

Release 2.1.0#17
tastybento merged 8 commits into
masterfrom
develop

Conversation

@tastybento

@tastybento tastybento commented Aug 21, 2026

Copy link
Copy Markdown
Member

Release 2.1.0

Changes since 2.0.0

  • ChunkBlock support — TopBlock now hooks into AOneBlock, ChunkBlock, or both. Each hooked game mode gets its own independent top ten, topblock subcommand, and placeholder set (%aoneblock_...% / %chunkblock_...%). [PR #14]
  • Fix cross-game-mode data bleed — Both AOneBlock and ChunkBlock share the OneBlockIslands database table (BentoBox keys on class simple name). Added a world filter so each game mode's top ten only includes its own islands. Also fixed Steve heads when template icon is PLAYER_HEAD, and added Pladdon softdepend + LinkageError resilience. [PR #16]
  • Pin MockBukkit to Maven Central release
  • Version bump to 2.1.0

Checklist

  • All 44 tests pass
  • Manual test with both AOneBlock and ChunkBlock
  • Verify player heads render correctly

tastybento and others added 8 commits May 29, 2026 17:26
The floating jitpack snapshot v1.21-SNAPSHOT resolves to an ephemeral
git-described build whose jar/POM get evicted, breaking CI even on
unchanged commits. Switch to the equivalent stable Maven Central
coordinates (org.mockbukkit.mockbukkit:mockbukkit-v1.21:4.110.0).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
TopBlock now hooks into AOneBlock, ChunkBlock, or both, keeping a
separate top ten, command, and placeholder set per game mode.

- New hooks package: TopBlockHook interface with AOneBlockHook and
  ChunkBlockHook implementations. These are the only classes that
  reference their game mode's packages, so a game mode that is not
  installed is never class-loaded.
- TopBlock.onEnable hooks each supported game mode that is present and
  enabled, registering a topblock subcommand on each player command;
  it disables itself only if neither game mode is found.
- TopBlockManager keeps one top ten list per hook; the refresh task
  updates all of them.
- PlaceholderManager registers island_*_top_1..10 placeholders once per
  hook, scoped to that game mode's addon, so %aoneblock_...% and
  %chunkblock_...% stay separate.
- addon.yml: depend AOneBlock -> softdepend AOneBlock, ChunkBlock;
  add chunkblock.island.topblock and chunkblock.intopten permissions.
- pom.xml: add chunkblock 1.0.1 (provided) and level 2.6.2 (test only,
  needed to mock ChunkBlock which hard-depends on Level).
- Tests: hook selection scenarios, per-hook top ten separation,
  world-to-hook resolution, per-game-mode placeholder registration,
  and unit tests for both hook implementations.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UtAC44orba7UkTpFwHEw22
Add ChunkBlock support alongside AOneBlock
Follow-up to the 2.1.0 pom bump, which left the CLAUDE.md note stale.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UtAC44orba7UkTpFwHEw22
Update CLAUDE.md build version reference to 2.1.0
Both AOneBlock and ChunkBlock use OneBlockIslands as their database
class name. BentoBox's JSON handler keys on getSimpleName(), so both
game modes share the same database/OneBlockIslands/ folder. When
TopBlock refreshes ChunkBlock's data, handler.loadObjects() returns
all records including AOneBlock's, causing AOneBlock players to appear
in the ChunkBlock panel.

Fix by filtering islands in refresh() with
hook.getGameMode().inWorld(island.getWorld()) so only islands belonging
to the correct game mode are included. Also guard the panel icon path
against customised templates where icon: PLAYER_HEAD is uncommented —
builder.icon(ItemStack) does not set playerHeadName, so HeadGetter was
never invoked and heads stayed as Steve.

Additionally, catch LinkageError in onEnable() when constructing game
mode hooks, and add softdepend entries in plugin.yml for the Pladdon
plugin names so class loading works across plugin loaders.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WwpMcJAhXEWeFwtRwg1uNy
Fix ChunkBlock top ten showing AOneBlock players
@sonarqubecloud

Copy link
Copy Markdown

@tastybento
tastybento merged commit 36996c2 into master Aug 21, 2026
5 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