-
Notifications
You must be signed in to change notification settings - Fork 0
API | Adding To Your Project
Mantice edited this page Dec 19, 2023
·
2 revisions
To add the API, use gradle or maven!
Make sure to replace {version} with the latest version!
If you're using gradle, add this to your build.gradle file:
repositories {
maven { url = 'https://jitpack.io' }
}
dependencies {
compileOnly 'dev.paracausal:WarriorMobCoinsAPI:{version}'
}Otherwise, if you're using maven, add this to your pom.xml:
<repositories>
<repository>
<id>jitpack</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>dev.paracausal</groupId>
<artifactId>WarriorMobCoinsAPI</artifactId>
<version>{version}</version>
<scope>provided</scope>
</dependency>Lastly, modify your plugin.yml to add WarriorMobCoins as a dependency or soft-dependency!
dependencies: ["WarriorMobCoins"]soft-dependencies: ["WarriorMobCoins"]Not sure whether to use dependencies or soft-dependencies?
Our recommendation is to use soft-dependencies so you can handle how your plugin functions with or without WarriorMobCoins on the server! If your plugin is solely to add to WarriorMobCoins via the API, dependencies is the way to go! But you may read more about the plugin.yml here!