Add Minecraft 26.x support and version Java artifacts
This commit is contained in:
@@ -3,11 +3,13 @@ import { Header, Footer } from "@/components/Shell";
|
||||
import { Blocks, Server, Download, ExternalLink } from "lucide-react";
|
||||
import { existsSync } from "node:fs";
|
||||
import Link from "next/link";
|
||||
const release = "0.1.3";
|
||||
const versions = ["1.21.11", "26.1", "26.2"];
|
||||
export const dynamic = "force-dynamic";
|
||||
export default async function Downloads() {
|
||||
const { t } = await getI18n();
|
||||
const fabric = existsSync("public/tools/mod/minegeo-fabric-1.21.11.jar"),
|
||||
plugin = existsSync("public/tools/plugin/minegeo-plugin-1.21.11.jar");
|
||||
const pluginPath = `/tools/plugin/minegeo-plugin-${release}.jar`;
|
||||
const plugin = existsSync(`public${pluginPath}`);
|
||||
return (
|
||||
<>
|
||||
<Header />
|
||||
@@ -33,7 +35,9 @@ export default async function Downloads() {
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
{t("Minecraft Java 1.21.11 + Fabric Loader + Fabric API")}
|
||||
{t(
|
||||
"Minecraft Java 1.21.11, 26.1 & 26.2 + Fabric Loader + Fabric API",
|
||||
)}
|
||||
</li>
|
||||
<li>{t("Open the capture panel with G")}</li>
|
||||
<li>{t("Link your account through a browser pairing code")}</li>
|
||||
@@ -48,24 +52,35 @@ export default async function Downloads() {
|
||||
</li>
|
||||
<li>{t("Contributions check the recorded server address")}</li>
|
||||
</ul>
|
||||
{fabric ? (
|
||||
<a
|
||||
className="button primary"
|
||||
href="/tools/mod/minegeo-fabric-1.21.11.jar"
|
||||
download
|
||||
>
|
||||
<Download size={16} /> {t("Download Fabric mod")}
|
||||
</a>
|
||||
) : (
|
||||
<p className="muted">
|
||||
{t("The Fabric build is not available yet.")}
|
||||
</p>
|
||||
{versions.map((version) =>
|
||||
existsSync(
|
||||
`public/tools/mod/minegeo-fabric-${version}-${release}.jar`,
|
||||
) ? (
|
||||
<a
|
||||
key={version}
|
||||
className="button primary"
|
||||
href={`/tools/mod/minegeo-fabric-${version}-${release}.jar`}
|
||||
download
|
||||
style={{ marginRight: 8, marginBottom: 8 }}
|
||||
>
|
||||
<Download size={16} /> {t("Download Fabric mod")} · {version}
|
||||
</a>
|
||||
) : (
|
||||
<p className="muted" key={version}>
|
||||
{version}: {t("The Fabric build is not available yet.")}
|
||||
</p>
|
||||
),
|
||||
)}
|
||||
<p className="muted" style={{ fontSize: 11, marginTop: 20 }}>
|
||||
{t(
|
||||
"Install the JAR in your Minecraft mods folder alongside Fabric API.",
|
||||
)}
|
||||
</p>
|
||||
<p className="muted">
|
||||
{t(
|
||||
"Java 21 for 1.21.11; Java 25 for 26.1 and 26.2. Both tools connect to minegeo.vercel.app automatically.",
|
||||
)}
|
||||
</p>
|
||||
</article>
|
||||
<article className="tool-card">
|
||||
<Server size={34} />
|
||||
@@ -77,7 +92,7 @@ export default async function Downloads() {
|
||||
)}
|
||||
</p>
|
||||
<ul>
|
||||
<li>{t("Bukkit/Paper 1.21.11 · Java 21")}</li>
|
||||
<li>{t("Bukkit/Paper 1.21.11, 26.1 & 26.2")}</li>
|
||||
<li>{t("Select a bounded area and export existing chunks")}</li>
|
||||
<li>{t("Choose up to 24 random, safe surface viewpoints")}</li>
|
||||
<li>
|
||||
@@ -90,11 +105,7 @@ export default async function Downloads() {
|
||||
<li>{t("Vanilla blocks/fluids, simplified lighting")}</li>
|
||||
</ul>
|
||||
{plugin ? (
|
||||
<a
|
||||
className="button primary"
|
||||
href="/tools/plugin/minegeo-plugin-1.21.11.jar"
|
||||
download
|
||||
>
|
||||
<a className="button primary" href={pluginPath} download>
|
||||
<Download size={16} /> {t("Download server plugin")}
|
||||
</a>
|
||||
) : (
|
||||
@@ -104,7 +115,7 @@ export default async function Downloads() {
|
||||
)}
|
||||
<pre>
|
||||
{
|
||||
"/minegeo website https://your-minegeo-site.example\n/minegeo server play.your-server.example\n/minegeo link <dashboard token>\n/minegeo area world -64 -64 64 64\n/minegeo export My Overworld\n/minegeo status\n# Wait for Export complete, then:\n/minegeo upload"
|
||||
"/minegeo server play.your-server.example\n/minegeo link <dashboard token>\n/minegeo area world -64 -64 64 64\n/minegeo export My Overworld\n/minegeo status\n# Wait for Export complete, then:\n/minegeo upload"
|
||||
}
|
||||
</pre>
|
||||
<p className="muted">
|
||||
@@ -117,10 +128,9 @@ export default async function Downloads() {
|
||||
)}
|
||||
</p>
|
||||
<p className="muted" style={{ fontSize: 11 }}>
|
||||
Put the JAR in plugins/ and restart. Set website, server-name and
|
||||
server-address in plugins/MineGeo/config.yml, then run /minegeo
|
||||
reload. HTTP LAN addresses are supported for testing. Permission:
|
||||
minegeo.admin.
|
||||
{t(
|
||||
"Put the JAR in plugins/ and restart. Set server-name and server-address in plugins/MineGeo/config.yml, then run /minegeo reload. Permission: minegeo.admin. The same plugin JAR supports all three versions.",
|
||||
)}
|
||||
</p>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user