Skip to content

Add Dynmap hook to display island borders#2883

Merged
tastybento merged 1 commit intodevelopfrom
feature/dynmap-hook
Mar 23, 2026
Merged

Add Dynmap hook to display island borders#2883
tastybento merged 1 commit intodevelopfrom
feature/dynmap-hook

Conversation

@tastybento
Copy link
Member

Summary

  • Adds a DynmapHook that integrates with Dynmap's Marker API to display island borders on the web map
  • Each owned island gets a point marker (icon + label at center) and an area marker (blue rectangle outlining the protected border)
  • Listens for island create, delete, rename, and reset events to keep markers in sync
  • Exposes public API (getMarkerAPI(), getMarkerSet(), createMarkerSet()) for addons to create custom markers

Test plan

  • Unit tests pass (DynmapHookTest — 20 tests covering hook lifecycle, marker creation/deletion, events, and public API)
  • Verify island borders appear on Dynmap web map after server restart
  • Verify markers update when islands are created, deleted, renamed, or reset
  • Verify marker cleanup on server restart (stale markers removed)

🤖 Generated with Claude Code

Integrates with Dynmap to show each owned island as a labeled point
marker plus an area marker outlining the protected island border.
Handles island create, delete, rename, and reset events to keep
markers in sync.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@tastybento tastybento merged commit cd04aa8 into develop Mar 23, 2026
1 check passed
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
6.9% Duplication on New Code (required ≤ 3%)
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

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