Skip to content

feat(map): add /map create for polygonal WorldEdit claim submission - #119

Open
Zoriot wants to merge 5 commits into
mainfrom
web-create-claim
Open

Zoriot wants to merge 5 commits into
mainfrom
web-create-claim

Conversation

@Zoriot

@Zoriot Zoriot commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add a Map module with /map create [name] that turns a polygonal WorldEdit selection into a BuildTheEarth web claim (lng, lat area strings).
  • Register claims under the player’s linked Minecraft account (owner.minecraft), surface a clear error when they are not registered, and make the created claim ID open the map page.
  • Wire command registration via registerParent (subcommand-only /map), module config (buildTeamId, webApiToken, webApiBasePath), btt.map.create, and the catalogued web-api-client dependency.

Closes #26.

Add a dedicated map module and /map create command that converts cuboid WorldEdit selections to geographic claim boundaries and submits them through the web API client. Configure a dedicated Bearer token and map-create permission, and add command registration coverage.
Move the map API credential and independent build team ID into modules/map/config.yml. Update claim creation for the republished client, which accepts a string team ID and derives the claim name when omitted.
Add registerParent so /map create works without a misleading no-op /map
command, move web-api-client into the version catalog, and cover the
parent-only registration path in tests.
Use polygonal selections with lng/lat strings, pass owner by Minecraft name,
optional claim name, clickable map link, configurable API base path, and
lazy config access so registration during Module.super() does not NPE.
Drop the one-off registerParent helper in favor of the shared register +
subcommand pattern, and read map standalone labels from MainConfig like
the other feature commands.
@Zoriot Zoriot added this to the Release v0.4.0 milestone Oct 24, 2026
@Zoriot Zoriot self-assigned this Oct 24, 2026
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Qodana for JVM

1 new problem were found

Inspection name Severity Problems
Nullability and data flow problems 🔶 Warning 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

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.

Website Map Integration

2 participants