Fix gamerule toggles for 26.x renames; add map/skins/pregen + admin favors

Minecraft 26.x renamed every gamerule to snake_case (keepInventory →
keep_inventory, doDaylightCycle → advance_time, ...), so the panel's
queries hit unknown rules: reads returned nothing, toggles always
started from 'off', and sets silently failed. Rules are now defined by
candidate names resolved against the live server (works on old and new
versions), sets are verified by re-query, and failures surface the
server's actual reply. Toggles render only for rules the server reports.

Creative additions:
- Featured mods on the Mods page: BlueMap (3D web map), SkinRestorer
  (real skins in offline mode), Chunky (pregen) — verified for 26.2
- BlueMap plumbing: MAP_PORT mapping in compose, in-network detection,
  'Open the live world map' link on the Overview
- Player modal favors: heal, teleport-to-player, give item
- Broadcast box gained a full-screen title mode

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Aryan SinghandClaude Fable 5 committed 2026-07-11 12:05:23 -05:00
1 parent deeeaf0042
commit b2ff88b255
9 files changed
+344 -50

No files matched your search

+14 -1
View File
@@ -2,7 +2,7 @@
import { useState } from "react";
import Link from "next/link";
import { Play, Square, RotateCw, HardDrive, Globe2, Cuboid } from "lucide-react";
import { Play, Square, RotateCw, HardDrive, Globe2, Cuboid, Map } from "lucide-react";
import { api, useApi, useSSE, toast } from "@/lib/api";
import { Card, StatTile, Button, Badge, EmptyState } from "@/components/ui";
import { Sparkline, UsageBar, type Point } from "@/components/charts";
@@ -17,6 +17,7 @@ type ServerData = {
serverType: string | null;
metrics: Record<string, number | null> | null;
pendingApprovals: number;
map: { available: boolean; port: number };
world: { seed: string | null; sizeBytes: number | null; dimensions: string[]; levelName: string | null };
uptimeMs: number | null;
};
@@ -254,6 +255,18 @@ export default function OverviewPage() {
<span className="ml-auto font-mono text-xs">{server.world.seed}</span>
</div>
)}
{server?.map.available && (
<a
href={`http://${typeof window !== "undefined" ? window.location.hostname : "localhost"}:${server.map.port}`}
target="_blank"
rel="noreferrer"
className="flex items-center gap-3 rounded-lg border border-accent-deep/40 bg-accent/10 px-3 py-2 text-sm text-accent hover:bg-accent/20"
>
<Map size={15} />
<span className="font-medium">Open the live world map</span>
<span className="ml-auto text-xs">BlueMap ↗</span>
</a>
)}
<div className="pt-1">
{m?.disk_used != null && m?.disk_free != null ? (
<UsageBar