Repository navigation
feat(xutilities): xUtilities 3.0, the pilot, on Paper, Folia, Spigot 1.8.8+ and Fabric - #167
Merged
Merged
Conversation
zacharyk812
force-pushed
the
feat/xutilities-v3
branch
2 times, most recently
from
November 25, 2026 03:50
2ccda7e to
c79973f
Compare
4 of 5 tasks
…lia, Spigot 1.8.8+ and Fabric Every 2.1 command, permission and setting, now in Kotlin Multiplatform (xutilities/api, common, bukkit, fabric). 2.x and 1.x configs carry forward with the old file kept as config.yml.bak-v2; edited messages move to lang/en.yml. Eight languages (seven machine-drafted), the API by UUID with /back's events, reload and debug, boot checks and the family test on Bukkit and Fabric, release wiring for every jar, and the site's 3.0 pages with 2.x's under /xutilities/v2/. Core: command results and the reload reply from the lang files, permissions an owner names, server commands displaced and given back on Bukkit and Fabric. Part of #123
…artup list and Fabric packaging Part of #123
zacharyk812
force-pushed
the
feat/xutilities-v3
branch
2 times, most recently
from
November 25, 2026 04:32
266b344 to
62f91fc
Compare
…se-list reader Part of #123
zacharyk812
force-pushed
the
feat/xutilities-v3
branch
from
November 25, 2026 04:45
62f91fc to
18ff3aa
Compare
The owner's call: #167 merges now, but nothing of the rewrite is released, not even an alpha, until every plugin is rewritten; then all ship at once. - docs: an "unreleased" field on a plugin's versions.json line keeps the site as it is. /xutilities/ serves the 2.x pages at their old addresses, the catalog keeps 2.1.0 and its jar budget, and the 3.0 pages are built at /xutilities/next/, link-checked but out of the sidebar, search, the sitemap and previous/next, with noindex. Files and links are written for after the release; plugins.ts serves each file where it belongs and links.ts rewrites the plugin's links before the validator checks them. Deleting the field is the switch (docs/README.md). Every page of main's build is unchanged but for the moved 2.x pages' edit links and dates. - The download picker's 3.0 data is gone; an unreleased plugin's picker says it isn't released. The requirements page is main's again. - Version 3.0.0, no alpha; the changelog section is "3.0.0 (unreleased)". - ROADMAP.md: a plugin's milestone ends merged with every check green; a release milestone after M15 ships every new major together after they run on our servers; maintenance keeps shipping 2.x fixes meanwhile. - decisions/2026-11-24-rewrites-release-together.md.
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #123.
What
xUtilities rewritten in place as 3.0 on the rewrite's Kotlin core, the pilot:
xutilities/api(platform-neutral, by UUID),xutilities/common(KMP, JVM and wasmWasi: config, migrations, messages, commands,/back, the API),xutilities/bukkit(Paper, Folia, Spigot, CraftBukkit 1.8.8 to 26.3) andxutilities/fabric(a branch of platform-fabric's build: 1.20.1, 1.21.11, 26.3). Today's Java xUtilities is removed frommain(maintenancekeeps 2.x). Version 3.0.0, unreleased: per the owner, nothing of the rewrite is released (no alpha) until every plugin is rewritten; then all ship together (see "Merging publishes nothing" below)./back's listener only while/backis on./pingbefore 1.17 on Spigot; on Fabric/backhears deaths and xUtilities' own teleports only).config.yml.bak-v2; edited messages move tolang/en.yml(andmessages.language: enso players keep the owner's words).lang/en.ymlvia the core's i18n; de, es, fr, pt-BR, ru, pl, zh-CN drafted,machine-drafted: true, for native review.XUtilities.api(),/backget/set/clear,isCommandEnabled, cancellableBackRecordEvent/BackTeleportEventon our bus and as Bukkit events (BukkitBackRecordEvent,BukkitBackTeleportEvent); ABI dump committed; breaking changes in the CHANGELOG and docs.reload,debug(noforget:/backspots are memory only).xenaReleaseon:xutilities:bukkitfor the Bukkit jar and the three Fabric jars (Modrinthxutilities, HangarxUtilities, voxel 10707; CurseForge left unset).release.ymlbuilds the Fabric jars first.affected.shboots it whenxutilities/changes.On the core's follow-ups (#163–#169)
UpdatesSection(updates.check,updates.channel); the migration carries 2.x'supdate-checker.enabledtoupdates.check. Bukkit and Fabric startcheckUpdates("xutilities", admin.updates, ...), reloadapplys, stop closes.core.update.availableis in every lang file.co.xenastudios.xutilities.bstats; none on Fabric.scripts/budgets/check.shnow seedsplugins/bStats/config.ymloff, as boot tests do.xena.fabric-mod(xenaFabricMod { id = "xutilities" }); the xTwin-style copy is gone.paper-plugin.ymlwith the core'sPaperLibraryLoader,api-version: '1.19', and a recordedxutilities/bukkit/startup-classes.txt(641 classes).xutilities).client.js --plugin xutilities,xutilities/bukkit/client-checks.txt) on the Paper 1.21.11 and Spigot 1.8.8 cells:/flyand/healin German,/gamemodecompletion, a teleport then/back, and/flyin English after the client switches (1.12+).Core changes (small, tested)
R8Shrinkputs a jar's shipped translations in one entry (lang/shipped.txt);LangFolder.shippedandLangFolder.bundleread it. The update checker's release lists are read by a field scanner instead of a JSON tree.scripts/affected-test.shknows rewritten plugins: their projects in the rewrite's task list, and cases forxutilities/common,bukkitandfabric. The root build puts build-logic on its class path withid("xena.java") apply false(today's convention, so the rewrite-only list stays out of today's reach).CoreMessagescore.command.*andcore.reload.*;CommandFeedback.of(AdminText)andmessage(result, source); Fabric's feedback settable; reload replies from the lang files.PermissionSet.node(...)/isNodefor config-named permissions./gamemode,/clear) and give it back.bukkit/).boot-fabric.shturns debug uploads off.Merging publishes nothing
docs/src/data/versions.json's xUtilities line has"unreleased": { "version": "2.1.0", "jarBudgetKb": 200 }. With it,/xutilities/serves the 2.x pages (files inxutilities/v2/) at the addresses they have today, the catalog (plugins.json) is main's again (2.1.0, 200 KB), and the 3.0 pages are built at/xutilities/next/: every link checked, but out of the sidebar, Pagefind, the sitemap and every other page's previous/next, withnoindex. Files and links are written for after the release;src/plugins.tsserves each file where it belongs now (the docs loader'sgenerateId) and the newsrc/links.tsrewrites the links on xUtilities' pages (Markdown links and<LinkCard href>) before the links validator checks them, so a broken link still fails the build (tested: a bad path and a bad anchor on a 3.0 page both fail it)."unreleased"from that line, thenpnpm catalog(docs/README.md, "Unreleased rewrites", says what else the release PR carries: the releases file for the picker,(unreleased)off the changelog, the requirements page). Tried locally: with the field gone the site builds as released 3.0, 2.x at/xutilities/v2/with the version switch, links valid.pnpm buildon both, asset names normalised): every one of main's 118 pages, the sitemap,_headersand the Pagefind index (101 fragments each) is the same, except the 2.x pages' "Edit page" links (their files moved tov2/) and "Last updated" dates, and the hidden/xsample/messages/(the core's new messages). The 11 new pages are all under/xutilities/next/.src/data/releases/xutilities.jsonis removed; the picker on an unreleased plugin's page says it isn't released (a released plugin without the file still fails the build).start/requirements.mdis main's again.release.ymlruns on tags only;modrinth.ymlpublishes*/modrinth.mdon change, andxutilities/modrinth.mdis unchanged; the root README and its badges are unchanged. On merge only the docs deploy runs, with the site above.## 3.0.0 (unreleased)with a note that it ships with the other rewrites; the release tasks find a section by its version, so the dry run below reads it.mainwith every check green; a new release milestone after M15 (unnumbered, so M16–M20 and their GitHub milestones keep their numbers) runs every rewrite on our own servers, then releases every new major together;maintenancekeeps shipping 2.x fixes until then. Recorded indecisions/2026-11-24-rewrites-release-together.md.#123's "Done when", reworded for that rule
common; adapters for the major's platforms.lang/en.yml(done); launch languages reviewed (drafted, native review left).reload,debug(nothing to import, migrate or forget).main, every check green (this PR).Running on our own servers and the release to every store move to the release milestone, for every plugin at once.
Why
M2: the first plugin end to end, so the core learns what plugins need. Choices in
decisions/2026-11-24-xutilities-3-the-pilot.mdanddecisions/2026-11-24-translations-in-one-entry.md(DECISIONS.md, the index, is left to the next release PR).How tested
./gradlew build(JVM + wasmWasi tests, ABI, manifest, translations, R8, budgets) and./gradlew -p core/platform-fabric build collect: pass.pnpm buildin docs: pass, all internal links valid;pnpm catalog:checkandnode scripts/decisions.ts --checkclean.lang/en.yml, alias kept,config.yml.bak-v2) → 2.1.0 (reads v3 read-only, warns, alias still works) → copy restored.scripts/budgets/check.sh, Paper 26.3): startup 94.8 ms (onEnable 84) against 150, heap 2.45 MB, metaspace 1.479 MB of 1.5, idle 0. PASS../gradlew build,./gradlew -p core/platform-fabric build collect, the docs build and the comparison with main's above,scripts/affected-test.sh(22 cases), the release dry run below, and boots on Paper 26.3 and Fabric 26.3 (their checks now expect 3.0.0): all pass../gradlew build, the Fabric build, the docs build andscripts/affected-test.sh(22 cases) pass; boots Paper 26.3, Spigot 1.8.8 (Java 8) with the client, the family test on Paper 26.3, Spigot 1.8.8 and Fabric 26.3, and Fabric 26.3 alone, all pass. Earlier on this round: boots Paper 26.3, Folia 26.3, Spigot 1.8.8 (Java 8) with the client, Paper 1.21.11 with the client, the family test on Paper 26.3 and Spigot 1.8.8; Fabric 1.20.1 and 26.3 alone and in the family test. All pass.Release dry run (
./gradlew :xutilities:bukkit:release -Pxena.release.dryRun=true)Nothing is published by this PR or its merge; this only shows what the eventual release would send.
What's left
decisions/2026-11-24-xutilities-3-the-pilot.md: what's in it, the cuts tried, what each gave), as the owner allowed; ROADMAP.md's jar row now says a jar goes over 500 only with a recorded reason. Its line is 560 (size + ~10%). Fabric is 453/454/467 KiB, lines 476/477/490.maintenancecould do it.scripts/release.tslearning the rewrite's layout (it reads<plugin>/build.gradle.kts); the switch's one line plussrc/data/releases/xutilities.json.modrinth.mdwith the release.https://plugins.xenastudios.co/xutilities/upgrade/), as the stores need; on GitHub that link 404s until the release (the site's own changelog page rewrites it to/xutilities/next/).