Skip to content

feat(xutilities): xUtilities 3.0, the pilot, on Paper, Folia, Spigot 1.8.8+ and Fabric - #167

Merged
zacharyk812 merged 4 commits into
mainfrom
feat/xutilities-v3
Nov 25, 2026
Merged

zacharyk812 merged 4 commits into
mainfrom
feat/xutilities-v3

Conversation

@zacharyk812

@zacharyk812 zacharyk812 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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) and xutilities/fabric (a branch of platform-fabric's build: 1.20.1, 1.21.11, 26.3). Today's Java xUtilities is removed from main (maintenance keeps 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).

  • Every 2.1 command, alias, permission and setting, same paths; every command switchable, renamable, rewordable, own permission; everything applies on reload; nothing on a timer; /back's listener only while /back is on.
  • What a server can't do is found once at startup and the command says so (workstations on Spigot before 1.21.4, /ping before 1.17 on Spigot; on Fabric /back hears deaths and xUtilities' own teleports only).
  • Migration: 1.0.1 and 2.1.0 configs carry forward through the core's versioned migrations, old file copied to config.yml.bak-v2; edited messages move to lang/en.yml (and messages.language: en so players keep the owner's words).
  • Messages: all in lang/en.yml via the core's i18n; de, es, fr, pt-BR, ru, pl, zh-CN drafted, machine-drafted: true, for native review.
  • API: XUtilities.api(), /back get/set/clear, isCommandEnabled, cancellable BackRecordEvent/BackTeleportEvent on our bus and as Bukkit events (BukkitBackRecordEvent, BukkitBackTeleportEvent); ABI dump committed; breaking changes in the CHANGELOG and docs.
  • Admin: reload, debug (no forget: /back spots are memory only).
  • Family: on the family's board, folder and player cache; boots beside xSample and xTwin.
  • Release: xenaRelease on :xutilities:bukkit for the Bukkit jar and the three Fabric jars (Modrinth xutilities, Hangar xUtilities, voxel 10707; CurseForge left unset). release.yml builds the Fabric jars first.
  • Boot matrix: xUtilities in every Bukkit and Fabric cell and in the family test; affected.sh boots it when xutilities/ changes.
  • Docs: generated manifest; new 3.0 pages (overview, install, download picker, commands, permissions, configuration, messages, link commands, developer API, upgrade from 2.x, changelog), built but hidden until the release; the site keeps showing 2.x as current (below).

On the core's follow-ups (#163–#169)

  • Update checker: the config mounts the core's UpdatesSection (updates.check, updates.channel); the migration carries 2.x's update-checker.enabled to updates.check. Bukkit and Fabric start checkUpdates("xutilities", admin.updates, ...), reload applys, stop closes. core.update.available is in every lang file.
  • bStats on Bukkit, service 34866 (2.x's), shaded and relocated to co.xenastudios.xutilities.bstats; none on Fabric. scripts/budgets/check.sh now seeds plugins/bStats/config.yml off, as boot tests do.
  • Fabric jar on xena.fabric-mod (xenaFabricMod { id = "xutilities" }); the xTwin-style copy is gone.
  • paper-plugin.yml with the core's PaperLibraryLoader, api-version: '1.19', and a recorded xutilities/bukkit/startup-classes.txt (641 classes).
  • R8 package is perf(build): smaller jars, with R8's marker stripped, a short package and fewer keep rules #169's default (xutilities).
  • A real client (client.js --plugin xutilities, xutilities/bukkit/client-checks.txt) on the Paper 1.21.11 and Spigot 1.8.8 cells: /fly and /heal in German, /gamemode completion, a teleport then /back, and /fly in English after the client switches (1.12+).

Core changes (small, tested)

  • R8Shrink puts a jar's shipped translations in one entry (lang/shipped.txt); LangFolder.shipped and LangFolder.bundle read it. The update checker's release lists are read by a field scanner instead of a JSON tree.
  • scripts/affected-test.sh knows rewritten plugins: their projects in the rewrite's task list, and cases for xutilities/common, bukkit and fabric. The root build puts build-logic on its class path with id("xena.java") apply false (today's convention, so the rewrite-only list stays out of today's reach).
  • CoreMessages core.command.* and core.reload.*; CommandFeedback.of(AdminText) and message(result, source); Fabric's feedback settable; reload replies from the lang files.
  • PermissionSet.node(...) / isNode for config-named permissions.
  • Bukkit and Fabric registrars displace the server's own command of the same name (vanilla /gamemode, /clear) and give it back.
  • Root build puts build-logic's conventions on its classpath (Shadow/run-paper by id in a rewritten plugin's bukkit/).
  • Two Stonecutter constants; boot-fabric.sh turns debug uploads off.

Merging publishes nothing

  • The site keeps showing 2.x. 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 in xutilities/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, with noindex. Files and links are written for after the release; src/plugins.ts serves each file where it belongs now (the docs loader's generateId) and the new src/links.ts rewrites 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).
  • The switch is one line: delete "unreleased" from that line, then pnpm 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.
  • Compared with main's build (pnpm build on both, asset names normalised): every one of main's 118 pages, the sitemap, _headers and the Pagefind index (101 fragments each) is the same, except the 2.x pages' "Edit page" links (their files moved to v2/) 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.json is 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.md is main's again.
  • Stores and repo pages: release.yml runs on tags only; modrinth.yml publishes */modrinth.md on change, and xutilities/modrinth.md is unchanged; the root README and its badges are unchanged. On merge only the docs deploy runs, with the site above.
  • CHANGELOG: the section is ## 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.
  • ROADMAP.md: a plugin's milestone ends merged on main with 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; maintenance keeps shipping 2.x fixes until then. Recorded in decisions/2026-11-24-rewrites-release-together.md.

#123's "Done when", reworded for that rule

  • Logic in common; adapters for the major's platforms.
  • Boot tests pass at its floor and the newest version.
  • Today's configs migrate, and going back to the old jar works (with a manual rename on 2.1.0, see below).
  • Every message in lang/en.yml (done); launch languages reviewed (drafted, native review left).
  • An API with events and add-on hooks; ABI dump committed.
  • Integrations pass the family test (no third-party hooks or importers in xUtilities).
  • Admin subcommands: reload, debug (nothing to import, migrate or forget).
  • Within every budget (the Bukkit jar over the 500 KiB target with its reason recorded).
  • Brand catalog entry updated for its platforms (brand repo).
  • Its pages built, with the generated reference and platform table (live at the release).
  • Merged on 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.md and decisions/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 build in docs: pass, all internal links valid; pnpm catalog:check and node scripts/decisions.ts --check clean.
  • Booted locally with the boot checks (every command family, reload, debug): Paper 26.3, Folia 26.3, Spigot 1.8.8 (Java 8), Fabric 1.20.1 (17), 1.21.11 (21), 26.3 (25). Family test (xSample + xTwin + xUtilities): Paper 26.3, Spigot 1.8.8, Fabric 26.3.
  • Real upgrade/downgrade on Paper 26.3: 2.1.0 with an edited message and alias → 3.0 (message copied to lang/en.yml, alias kept, config.yml.bak-v2) → 2.1.0 (reads v3 read-only, warns, alias still works) → copy restored.
  • Budgets (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.
  • After this round's change (version 3.0.0, docs held back): ./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.
  • After the rebase on ci: decisions one file each, and rewrite-only pull requests skip today's boots #170: ./gradlew build, the Fabric build, the docs build and scripts/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.

## xUtilities 3.0.0 (release)

| Jar | Platform | Minecraft | SHA-256 |
|---|---|---|---|
| `xutilities-3.0.0-bukkit.jar` | Bukkit | 1.8.8 to 26.3 (67) | `4815815b449e4424…` |
| `xutilities-3.0.0-fabric-1.20.1.jar` | Fabric 1.20.1 | 1.20.1 | `d8e1dcf7a58ce042…` |
| `xutilities-3.0.0-fabric-1.21.11.jar` | Fabric 1.21.11 | 1.21.11 | `b6c7fa04363744be…` |
| `xutilities-3.0.0-fabric-26.3.jar` | Fabric 26.3 | 26.3 | `65bef331b7eef4fd…` |

| Store | Jars |
|---|---|
| GitHub Releases | xutilities-3.0.0-bukkit.jar, xutilities-3.0.0-fabric-1.20.1.jar, xutilities-3.0.0-fabric-1.21.11.jar, xutilities-3.0.0-fabric-26.3.jar |
| Modrinth | xutilities-3.0.0-bukkit.jar, xutilities-3.0.0-fabric-1.20.1.jar, xutilities-3.0.0-fabric-1.21.11.jar, xutilities-3.0.0-fabric-26.3.jar |
| Hangar | xutilities-3.0.0-bukkit.jar |
| voxel.shop | xutilities-3.0.0-bukkit.jar |
| CurseForge (Bukkit) (no project yet: skipped) | xutilities-3.0.0-bukkit.jar |
| CurseForge (mods) (no project yet: skipped) | xutilities-3.0.0-fabric-1.20.1.jar, xutilities-3.0.0-fabric-1.21.11.jar, xutilities-3.0.0-fabric-26.3.jar |
| SpigotMC (update post to paste) | xutilities-3.0.0-bukkit.jar |
| BuiltByBit (update post to paste) | xutilities-3.0.0-bukkit.jar |

Store pages (CurseForge, SpigotMC, BuiltByBit) use the brand catalog's:

- Name: xUtilities
- Summary: Lightweight essentials for Paper and Folia: gamemode, fly, speed, heal, feed, /back, /top and repair, with anvils, crafting tables and other workstations anywhere. Add your own link commands like /discord, and switch off any command.
- Icon: https://raw.githubusercontent.com/xena-studios/brand/main/plugins/xutilities/icon.svg
- Banner: https://raw.githubusercontent.com/xena-studios/brand/main/plugins/xutilities/banner.png

What's left

  • The Bukkit jar is 508 KiB, over the 500 KiB target, with the reason recorded (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.
  • 2.1.0 can't restore its own copy (it's released): manual rename on the upgrade page; a 2.1.1 on maintenance could do it.
  • The release milestone: running on our own servers, then the release with the other rewrites; CurseForge project ids; publishing the API (relocated core-api types) to Maven Central; scripts/release.ts learning the rewrite's layout (it reads <plugin>/build.gradle.kts); the switch's one line plus src/data/releases/xutilities.json.
  • Brand catalog wording for the new platforms (brand repo), modrinth.md with the release.
  • The 3.0 changelog links the upgrade page in full (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/).
  • Native review of the seven drafted languages.
  • Not verified on real servers: Spigot 1.13–1.21/26.3, CraftBukkit, Paper 1.8–1.20, Quilt, forks (the nightly matrix covers some); the MenuType path on Spigot.

@github-actions github-actions Bot added documentation Improvements or additions to documentation core The shared core and build xutilities xUtilities api Developer API and cross-plugin support labels Nov 24, 2026
@zacharyk812
zacharyk812 force-pushed the feat/xutilities-v3 branch 2 times, most recently from 2ccda7e to c79973f Compare November 25, 2026 03:50
…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
@zacharyk812
zacharyk812 force-pushed the feat/xutilities-v3 branch 2 times, most recently from 266b344 to 62f91fc Compare November 25, 2026 04:32
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.
@zacharyk812
zacharyk812 merged commit 17109e0 into main Nov 25, 2026
32 checks passed
@zacharyk812
zacharyk812 deleted the feat/xutilities-v3 branch November 25, 2026 05:29
@zacharyk812 zacharyk812 mentioned this pull request Nov 25, 2026
9 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Developer API and cross-plugin support core The shared core and build documentation Improvements or additions to documentation xutilities xUtilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant