Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

Drc-DEV/Duels

 
 

Repository files navigation

Duels | 1.17+ Fork

A 1.17+ Fork of Duels. Original Spigot Project Page


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:

compile(group: 'com.github.Drc-DEV.Duels', name: 'duels-api', version: '3.4.2') {
    transitive = false
}

Maven:

<dependency>
    <groupId>com.github.Drc-DEV.Duels</groupId>
    <artifactId>duels-api</artifactId>
    <version>3.4.2</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");
        }