Skip to content

Installation

Two approaches available:

  • Template (this page) β€” clone the repo, rename, delete the example package. Best for new plugins.
  • JitPack dependency β€” add DzusillCore as a Maven dependency. Best if you already have your own project structure.

On GitHub, click Use this template β†’ Create a new repository to generate a fresh repo with all the framework files. Then clone your new repo locally:

Terminal window
git clone https://github.com/YOUR_USERNAME/YOUR_PLUGIN.git
cd YOUR_PLUGIN

Alternatively, clone DzusillCore directly if you want to inspect or contribute to the framework itself:

Terminal window
git clone https://github.com/dzusill/DzusillCore.git
cd DzusillCore

Open pom.xml and update these three values to match your plugin:

<groupId>com.yourname</groupId>
<artifactId>YourPlugin</artifactId>
<name>YourPlugin</name>

Then update the main class path in src/main/resources/plugin.yml:

main: com.yourname.yourplugin.YourPlugin

The me.dzusill.core.example package is a fully working reference plugin. Once you understand the structure:

  1. Create your own package (e.g. com.yourname.yourplugin).
  2. Extend CorePlugin and implement modules().
  3. Delete the example package.

See Your First Plugin for a step-by-step walkthrough.

Terminal window
mvn package

Maven downloads all dependencies on first run. Output JAR:

target/YourPlugin-1.0.0.jar

This is a fat/shaded JAR β€” HikariCP is relocated to me.dzusill.core.lib.hikari and both MySQL and PostgreSQL JDBC drivers are bundled inside.

Terminal window
cp target/YourPlugin-1.0.0.jar /path/to/server/plugins/

Restart the Paper server. The plugin loads and prints a startup banner.

Terminal window
mvn test

All tests should pass. See Testing for details.


Connect the dzusill/DzusillCore GitHub repo to GitBook. GitBook reads .gitbook.yaml from the repo root β€” no monorepo path override needed.