This is starter template for developing Paper plugins in Kotlin language.
Be sure to use this template as follows:
- Clone the repository;
- Rename the plugin group name in build.gradle and main class in plugin.yml;
- Rename the direstory structure in src/main/java according to your changes;
- Do not forget to change package name in KotlinPlugin.kt;
- That's all!
To build plugin, use ./gradlew shadowJar
command in project root.
To debug plugin, use gradle's devServer
subcommand.
It starts development server, which will take your jar from shadowJar
and reload plugin in server each time you build jar using shadowJar
. The breakpoints also works in IDE's like IntelliJ.
For more info, please visit PaperMake's Github repository.