Skip to content

Preflight 0.1.0

Choose a tag to compare

@github-actions github-actions released this 08 Nov 06:28
· 9 commits to main since this release
cecb339

First release. Preflight runs smoke tests when a Paper server boots and keeps players out until they pass. Other plugins can add their own tests.

Requirements

  • Paper 26.1 or newer. It won't load on Spigot or on Minecraft 1.21.
  • Java 25.

Install

  1. Download Preflight-0.1.0.jar below.
  2. Put it in your server's plugins/ folder and restart.
  3. Check plugins/Preflight/report.xml, or run /preflight status (needs preflight.admin, which defaults to ops).

The default on-failure setting is LOCKDOWN: if a critical test fails, logins stay refused until an admin runs /preflight unlock. See the README for the other settings.

Plugin authors: preflight-api-0.1.0.jar is the compileOnly dependency for adding tests. The README shows the paper-plugin.yml and plugin.yml setup.

What was tested

Unit tests, plus five live scenarios on throwaway Paper 26.1.2 (build 74), 26.2 (build 135) and 26.3 (build 244) servers, all passing on each:

  • a clean run that stops the server and deletes the test world
  • a lockdown after a plugin throws in onEnable, then /preflight unlock
  • DISABLE_PLUGIN disabling a dependent plugin before the failing one
  • SHUTDOWN
  • every login refused until the tests finished

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 DISABLE_PLUGIN hard dependency declared in paper-plugin.yml rather than plugin.yml.
  • A real plugin stack. Try it on a staging copy before a live server.