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>ToTestServer
taskscopyAllToTestServer
: Copies all modules and the main plugin .jar to your test server - same as runningcopyPluginToTestServer
andcopyAllModulesToTestServer
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.properties
file 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_-]+
.
Debug output can be enabled by setting the BASICS_DEBUG_LEVEL
environment variable to 1 or higher, for example:
BASICS_DEBUG_LEVEL=99 java -jar spigot.jar
You can also change the debug level on the fly using /basicsdebug setdebugloglevel <number>
.