Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

OrzMC PluginTemplate

PluginTemplate project icon

Reusable Agent-friendly Paper plugin template.

  • Java 25, Gradle Kotlin DSL
  • plugin-core: platform-independent Java
  • plugin-paper: Paper adapter and plugin entry point
  • Traditional plugin.yml descriptor
  • Paper Lifecycle API + Brigadier command
  • Lifecycle-managed modules with startup rollback and reverse shutdown
  • Typed immutable configuration, schema migration, validation and transactional reload
  • JUnit 5 and GitHub Actions CI with EULA-gated disposable Paper smoke automation
  • Daily latest-STABLE Paper 26.3 compatibility workflow (10:23 Beijing), with checksum verification and evidence artifacts
  • Failure-path regression tests for startup/command timeouts and process cleanup
  • Paper 26.3 MockBukkit integration tests for listener lifecycle and Paper YAML config storage; skipped tests fail CI and JUnit reports are retained
  • Weekly Dependabot updates for Gradle and GitHub Actions; Gradle dependency graph submission on main
  • CodeQL Java/Kotlin static analysis on PRs, main pushes and weekly schedule
  • Current baseline: v1.0.1. Paper 26.3 + Folia 26.3 support and stable tag-driven publishing to GitHub Releases, Hangar and Modrinth are implemented; the same release JAR is used across destinations. See CHANGELOG.md, release operations, and the release plan.

Paper API target is centralized in gradle.properties (26.3).

Build

Requires JDK 25 as the default java/javac (or JAVA_HOME pointing at a JDK 25 install); the build uses the Java 25 toolchain and --release 25, so an older JDK cannot compile it. Verify with java -version before building. The verification scripts use $JAVA_HOME/bin/jar when JAVA_HOME is set, so exporting JAVA_HOME is enough.

Repository text files are normalized to LF by .gitattributes (only *.bat keeps CRLF), so ./gradlew runs directly on Linux, macOS and WSL.

./gradlew --no-daemon clean check build
bash scripts/inspect-jar.sh
python3 -m unittest discover -s tests -p 'test_*.py'

Output JAR: plugin-paper/build/libs/OrzMCPluginTemplate-0.1.0-SNAPSHOT.jar.

Runtime acceptance

The local-agent handoff and isolated Paper 26.3 runtime acceptance procedure are documented in docs/real-server-acceptance.md. A local coding agent should execute that procedure after cloning the repository and record observed results there. Never use or modify the production OrzMC server for this test.

The current records cover Paper 26.3 and Folia 26.3 runtime acceptance, including same-JAR dual-platform verification. See the Paper acceptance and Folia acceptance.

Release notes live in CHANGELOG.md: the tag workflow extracts the version section and publishes it as the GitHub release notes, the Hangar version changelog and the Modrinth version changelog (missing notes fail the release), and re-syncs plus verifies the project overview pages from docs/platform-listings.md.

Create a new independent plugin project with the safe project initializer; dry-run is the default and writing requires an explicit --apply flag. Releases are built and published from version tags; see release operations. Marketplace listing metadata is authoritative in docs/platform-listings.md and is audited read-only against Hangar/Modrinth by python3 scripts/platform_audit.py.

Generated-project source provenance is recorded in docs/project-provenance.md; the read-only Project Registry inventories explicitly registered local checkouts and discovers matching GitHub repositories within an explicitly selected visibility scope; template drift reports compare recorded source commits against a pinned target; the multi-project planner then runs read-only file classification for eligible local checkouts, with disposable multi-project acceptance coverage documented in P5.6.1. Template ownership and non-destructive upgrade rules are defined in template-manifest.json, docs/template-upgrades.md, the read-only upgrade planner, and the transactional PR-only apply design. See docs/architecture.md, docs/release.md, and docs/roadmap.md. No implementation code has been copied from RealTime or OrzMCPlugin; both remain read-only references. This repository is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages