Gradle:
maven {
name 'jitpack-repo'
url 'https://jitpack.io'
}
Maven:
<repository>
<id>jitpack-repo</id>
<url>https://jitpack.io</url>
</repository>
Gradle:
implementation 'com.github.dumbo-the-developer.Duels:duels-api:VERSION'
Maven:
<dependency>
<groupId>com.github.dumbo-the-developer.Duels</groupId>
<artifactId>duels-api</artifactId>
<version>VERSION</version>
<scope>provided</scope>
</dependency>
Add Duels as a soft-depend to ensure Duels is fully loaded before your plugin.
soft-depend: [Duels]
@Override
public void onEnable() {
Duels api = (Duels) Bukkit.getServer().getPluginManager().getPlugin("Duels");
}