Repository navigation
Preflight 0.1.0
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
- Download
Preflight-0.1.0.jarbelow. - Put it in your server's
plugins/folder and restart. - Check
plugins/Preflight/report.xml, or run/preflight status(needspreflight.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_PLUGINdisabling a dependent plugin before the failing oneSHUTDOWN- 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
/preflightin tab completion. - A
DISABLE_PLUGINhard dependency declared inpaper-plugin.ymlrather thanplugin.yml. - A real plugin stack. Try it on a staging copy before a live server.