Basics is a modular core plugin for modern Spigot versions!
To compile, use gradlew build.
You can also use gradlew distribution,
which will create the plugin .jar and all modules in a drag-and-droppable layout into build/dist.
You can also use gradlew zipDistribution to get the whole project .zip file.
For running Basics locally, you can also use the testserver tasks:
copyPluginToTestServer: Copies the main plugin .jar to your test servercopyModule<Name>ToTestServer: Copies the specific module .jar to your test servercopyAllModulesToTestServer: Copies all modules to the test server - same as running allcopyModule<Name>ToTestServertaskscopyAllToTestServer: Copies all modules and the main plugin .jar to your test server - same as runningcopyPluginToTestServerandcopyAllModulesToTestServer
The path to your test server can be specified using a gradle property called "testserver.path" using one of the following methods:
- as command line argument (
gradlew copyAllToTestServer -Ptestserver.path=/my/test/server) - in the
gradle.propertiesfile in your gradle home directory (usually~/.gradle):testserver.path=/my/test/server
Check the Trello Board!
The documentation can be found here:
It is not often updated, so better create your own using gradlew dokkaHtml or gradlew dokkaJavadoc in the core project.
Contributions are always welcome from anyone!
Modules can be written in Java or Kotlin. To create a new module, use the createModule task.
It will ask you which language (kotlin or java) you want to use, asks you for the module name, which should be [a-z0-9_-]+.

