Skip to content

Preflight 0.2.0

Choose a tag to compare

@github-actions github-actions released this 08 Nov 15:13
· 8 commits to main since this release
8a50167

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, disabled or not-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.

  • 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=WARN and -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

  1. Download Preflight-0.2.0.jar below.
  2. Replace the old Preflight jar in your server's plugins/ folder and restart. Your config.yml keeps working unchanged.
  3. Check plugins/Preflight/report.xml, or run /preflight status (needs preflight.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_PLUGIN with a plugin.yml dependency, and again with a paper-plugin.yml dependency (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 /preflight in tab completion.
  • A real plugin stack. Try it on a staging copy before a live server.
  • Error wording other than Paper's. The reason field is then left out, not guessed.