Repository navigation
Preflight 0.2.0
report.xml now says what happened to each plugin, so a tool can decide what to switch off. One example is an upgrade helper that boots a copy of a server on a new Minecraft version.
What's new
-
Per-plugin detail in report.xml. A standard JUnit
<properties>block lists:- every plugin's state:
enabled,disabledornot-loaded - its jar files and dependencies
- which plugins depend on it
- which checks it failed
- the server's own error line from the boot log
It also lists unreadable and non-plugin jars, the Paper build, and the on-failure action used. Field reference: docs/report-format.md.
- every plugin's state:
-
Jars that never loaded show up. Bad
api-version, a missing dependency or a missing main class: Preflight reads the jar's own descriptor. -
New check,
Preflight:plugins-loaded(WARNING). It fails when a jar didn't load or couldn't be read, or when an enabled plugin's hard dependency isn't running. Paper 26.x enables such plugins anyway. -
Skipped tests appear in the report as
<skipped/>. -
Overrides without editing config.yml:
-Dpreflight.on-failure=WARNand-Dpreflight.shutdown-after-run=true. -
The report is written whole, then moved into place, so it's never half-written.
Existing test cases, the failures count and grep 'failures="0"' in CI work as before.
Requirements
- Paper 26.1 or newer. It won't load on Spigot or on Minecraft 1.21.
- Java 25.
Install or update
- Download
Preflight-0.2.0.jarbelow. - Replace the old Preflight jar in your server's
plugins/folder and restart. Yourconfig.ymlkeeps working unchanged. - Check
plugins/Preflight/report.xml, or run/preflight status(needspreflight.admin, which defaults to ops).
Plugin authors: preflight-api-0.2.0.jar is unchanged from 0.1.0 apart from its version.
What was tested
- 32 unit tests, including validating the report against a JUnit schema.
- On throwaway Paper 26.1.2 (build 74), 26.2 (build 135) and 26.3 (build 244) servers, all passing on the exact jar attached here:
- a clean run that stops the server and deletes the test world
- a lockdown, then
/preflight unlock DISABLE_PLUGINwith aplugin.ymldependency, and again with apaper-plugin.ymldependency (the dependent was disabled first)SHUTDOWN- logins refused until the run finished
- a boot with plugins broken in each way above, plus a corrupt jar and a library jar, with the report checked field by field and against the schema
Logins came from a small protocol bot that only reaches the login step. The servers and plugins were real; nothing was mocked.
What wasn't tested
- A real game client, including whether non-admins see
/preflightin tab completion. - A real plugin stack. Try it on a staging copy before a live server.
- Error wording other than Paper's. The
reasonfield is then left out, not guessed.