A template for building PaperMC Minecraft server plugins!
This template targets Paper 26.3 and Java 25. For an older server, use the Paper-to-template version table to find the latest compatible template source. Release notes are on GitHub Releases. Spigot and Folia compatibility is not claimed.
- Automated builds, testing, and release drafting
- Optional Discord notifications for snapshots and releases
- Probot: Stale
- Mark issues stale after 30 days
- Dependabot
- Update GitHub Actions workflows
- Update Gradle dependencies
- Bug report template
- Feature request template
- Shadowed plugin dependencies
- Checkstyle Google standard style check
- SpotBugs code analysis
- JUnit 6 unit, integration, and shaded-JAR tests
- Mockito for mocking dependencies in unit tests
- Integration tests against real cw-commons
/examplecommand via CommandAPI demonstrating subcommands, tab completion, and permissions- Startup config loading and validation via cw-commons'
BukkitConfigManagerBuilder, backed by Jackson and Hibernate Validator. The manager closes after loading. CreeperKillListenercredits each kill with an atomicPlayerDataManager.update./example creepersKilledreads the player's SQLite-backed count and reports read failures instead of displaying a misleading zero.
- Sample plugin.yml with autofill name, version, main class, and minimum Paper API version.
- Example config.yml
- Gradle build config
- Simple .gitignore for common Gradle files
In order to use this template for yourself, there are a few things that you will need to keep in mind.
- Extending the example code — add commands, subcommands, config fields, or persistent per-player data
- Customizing this template — the one-time checklist for forking this repo (placeholders, secrets, etc.)
- Releases & versioning — PaperMC compatibility, version format, and how to cut a release
- Agent instructions & skills — agent guidance, Claude Code support, and available skills
Install Java 25 (and point JAVA_HOME to it) before building.
Thanks to Gradle, building locally is easy no matter what platform you're on. Simply run the following command:
./gradlew build
This build step also runs Checkstyle, SpotBugs, and unit tests.
Run ./gradlew test for isolated unit tests or ./gradlew integrationTest for tests that use
real cw-commons configuration and storage implementations. Integration-test files are created in
JUnit temporary directories and removed automatically.
Run ./gradlew artifactTest to check the shaded JAR itself: packaged configuration and validation,
SQLite persistence, metadata, service providers, and native libraries. It requires no running server.
Dependency and tooling versions live in gradle/libs.versions.toml. Its minecraft version
drives both runServer and the processed plugin.yml API declaration; the full paper API pin
is kept separately and reused for compilation and all test suites.
JARs can be found in build/libs/.
See CONTRIBUTING.md.