MongoSpigot is built with Gradle.
If you have it installed run: gradlew build
in the interested project module.
To use this library follow these steps:
- Add the MongoMinecraft plugin for your server.
- Add
depend: [MongoSpigot]
(here use MongoMinecraft version you need) - Add MongoDB dependency into your build.gradle or pom.xml:
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-sync</artifactId>
<version>4.11.0</version>
</dependency>
dependencies {
implementation 'org.mongodb:mongodb-driver-sync:4.11.0'
}