/CodedredGoldThief

video by CodedRed converted to kotlin https://www.youtube.com/watch?v=B7fYVYYXkL4&list=PL65-DKRLvp3ZO63cYW86Sm920BiDb2gBa

Primary LanguageKotlinMIT LicenseMIT

spigot-plugin-base

This is a basic codebase for a Spigot plugin written in Kotlin and built using Gradle.

Requirements

  • JDK 8+ (Kotlin builds to this target)
  • Gradle 6+

Initial Usage

Clone this repo, and then change the following files to match your new package name:

  • src/main/java/me/waqe/#NAME#/ (create the package)
  • src/main/java/me/waqe/#NAME#/App.kt (change the package name in line 1)
  • src/resources/plugin.yml (There is a main field) (There is a name field)

Additional Notes

  • The Spigot version is specified in build.gradle.kts
  • Follow the conventions of the Gradle java plugin
    • Keep all your source code under src/main/java/
    • Keep all other assets (e.g. plugin.yml) under src/main/resources

Usage

To build a JAR file for use with Spigot, run gradle shadowJar. The completed file will be in build/libs.

File-Project Structure-Artifacts-Add Empty Jar give a name set to /data/testserver/plugins add plugin.yml and other needed files