Skip to content

Template for Minecraft Paper plugin development using Gradle Kotlin DSL and publishing with GitHub Actions

License

Notifications You must be signed in to change notification settings

Atrimilan/PaperPluginTemplate

Repository files navigation

Paper Plugin Template

GitHub Actions Workflow Status GitHub Tag GitHub License

Example project to get started with Paper plugin development and publication.

1. Gradle tasks

This project includes a build.gradle.kts configuration with useful tasks :

  • Running a local Paper Minecraft server :

    • runDevBundleServer - Run a local Paper Minecraft server (source : https://github.com/jpenilla/run-task)
    • buildPluginAndRunServer - Run a local Paper Minecraft server with a new build of the plugin
  • Plugin versioning :

    • incrementMajorVersion - Update the first digit of the project version
    • incrementMinorVersion - Update the second digit of the project version
    • incrementPatchVersion - Update the last digit of the project version

2. GitHub Action workflow

This project also includes a release.yml file for publishing new versions of your plugin on CurseForge, Modrinth and GitHub. Secrets and variables must be defined in the repository Security settings :

  1. Secrets :
  2. Variables :
    • CURSEFORGE_PROJECT_ID - CurseForge public project ID
    • MODRINTH_PROJECT_ID - Modrinth public project ID

If your prefer to store all your variables in gradle.properties (NOT YOUR SECRETS), or store them in GitHub variables, do not forget to update release.yml in accordingly.

About

Template for Minecraft Paper plugin development using Gradle Kotlin DSL and publishing with GitHub Actions

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages