From 923abdc472aab0efd749df7be6c837e3655f4d50 Mon Sep 17 00:00:00 2001 From: pavel444-byte Date: Mon, 5 Oct 2026 19:33:00 +0500 Subject: [PATCH] Added some features :D, Codex limits are burned out by GPT 6 Astra D: --- README.md | 4 + app/dashboard/[id]/page.tsx | 4 +- app/layout.tsx | 1 + app/servers/[id]/page.tsx | 1 + app/workshop.css | 96 ++++++++++++++++ components/ContributionInstructions.tsx | 21 +++- components/DraftEditor.tsx | 108 +++++++++++++----- components/MapCard.tsx | 1 + components/MapRefresh.tsx | 87 ++++++++++++++ components/OwnerContributions.tsx | 10 +- components/ProcessingProgress.tsx | 2 +- lib/api.ts | 58 +++++++++- .../dev/minegeo/fabric/MineGeoClient.java | 2 +- .../java/dev/minegeo/plugin/UploadClient.java | 2 +- public/tools/mod/minegeo-fabric-1.21.11.jar | Bin 39133 -> 39117 bytes .../tools/plugin/minegeo-plugin-1.21.11.jar | Bin 340746 -> 340740 bytes shared/database.ts | 12 ++ shared/processing-progress.ts | 1 + shared/protocol.ts | 6 + .../migrations/20261005141142_map_refresh.sql | 82 +++++++++++++ tests/contributions.test.ts | 3 + tests/sql/map-refresh.sql | 57 +++++++++ worker/main.ts | 33 ++++-- 23 files changed, 538 insertions(+), 53 deletions(-) create mode 100644 app/workshop.css create mode 100644 components/MapRefresh.tsx create mode 100644 supabase/migrations/20261005141142_map_refresh.sql create mode 100644 tests/sql/map-refresh.sql diff --git a/README.md b/README.md index e55ae36..6323b1f 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,10 @@ Maps support up to 24 locations and games choose five at random. Owners can opt Contributions check the server address recorded during capture. Owners can correct or clear the map's expected address. Fabric records the connected server automatically; plugin admins must set `server-address` or run `/minegeo server ` before exporting. +In **Dashboard → Open map → Map tools**, owners can add their own panoramas with `/minegeo contribute ` even when guest contributions are disabled. Owners can fill all 24 slots; other players retain their cumulative 12-location limit. Processed captures must be submitted and accepted in the map’s inbox, then the map update submitted for moderator review. + +**Refresh guessing map** rerenders only the overhead map through the worker, without consuming panorama slots or changing panorama images. Choose the original capture, another processed capture you own, or an accepted contribution with exactly matching boundaries and the expected server address. To reflect new builds, export/upload fresh terrain first (a separate map upload also works when the original map is full). Fabric refreshes use the uploaded surface capture. The approved map and ongoing games keep their previous image until moderation approves the update. Apply the `map_refresh` migration and restart both the website and worker when updating an existing installation. + Ready-to-install JARs are committed under `public/tools/plugin` and `public/tools/mod` and served by `/downloads`. After pulling an update, replace the Minecraft server's installed JAR and restart that server; pulling the website alone does not update an already installed plugin. - **Server:** Java 21 and Bukkit/Paper 1.21.11. Follow [the plugin guide](docs/server-plugin.md). diff --git a/app/dashboard/[id]/page.tsx b/app/dashboard/[id]/page.tsx index 8801a39..4ce1236 100644 --- a/app/dashboard/[id]/page.tsx +++ b/app/dashboard/[id]/page.tsx @@ -14,8 +14,8 @@ export default async function Draft({ <>
- YOUR WORLD, BEFORE THE WORLD SEES IT -

At the drawing board.

+ YOUR WORLD · YOUR LOCATIONS +

Map workshop