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.
1. Create your project from the template
Section titled β1. Create your project from the templateβ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:
git clone https://github.com/YOUR_USERNAME/YOUR_PLUGIN.gitcd YOUR_PLUGINAlternatively, clone DzusillCore directly if you want to inspect or contribute to the framework itself:
git clone https://github.com/dzusill/DzusillCore.gitcd DzusillCore2. Rename the project
Section titled β2. Rename the projectβ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.YourPlugin3. Replace the example package
Section titled β3. Replace the example packageβThe me.dzusill.core.example package is a fully working reference plugin. Once you understand the structure:
- Create your own package (e.g.
com.yourname.yourplugin). - Extend
CorePluginand implementmodules(). - Delete the
examplepackage.
See Your First Plugin for a step-by-step walkthrough.
4. Build the JAR
Section titled β4. Build the JARβmvn packageMaven downloads all dependencies on first run. Output JAR:
target/YourPlugin-1.0.0.jarThis is a fat/shaded JAR β HikariCP is relocated to me.dzusill.core.lib.hikari and both MySQL and PostgreSQL JDBC drivers are bundled inside.
5. Drop into your server
Section titled β5. Drop into your serverβcp target/YourPlugin-1.0.0.jar /path/to/server/plugins/Restart the Paper server. The plugin loads and prints a startup banner.
6. Run the tests (optional)
Section titled β6. Run the tests (optional)βmvn testAll tests should pass. See Testing for details.
GitBook.com sync note
Section titled βGitBook.com sync noteβConnect the dzusill/DzusillCore GitHub repo to GitBook. GitBook reads .gitbook.yaml from the
repo root β no monorepo path override needed.