Skip to content

Latest commit

 

History

History
72 lines (53 loc) · 1.54 KB

README.md

File metadata and controls

72 lines (53 loc) · 1.54 KB

Duels


Getting the dependency

Repository

Gradle:

maven {
    name 'jitpack-repo'
    url 'https://jitpack.io'
}

Maven:

<repository>
  <id>jitpack-repo</id>
  <url>https://jitpack.io</url>
</repository>

Dependency

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>

plugin.yml

Add Duels as a soft-depend to ensure Duels is fully loaded before your plugin.

soft-depend: [Duels]

Getting the API instance

@Override
public void onEnable() {
  Duels api = (Duels) Bukkit.getServer().getPluginManager().getPlugin("Duels");
}