API - Kirastur/BossbarCountdown GitHub Wiki

Maven

Before you can use the API, you must first include the BossbarCountdown Artifact into your plugin build. For this you must add the following lines to your pom.xml file.

<repositories>
    ....
    <!-- This adds the Polarwolf repository to the build -->
    <repository>
        <id>polarwolf-repo</id>
        <url>https://polarwolf.de/mvn-repo/</url>
    </repository>
    ....
</repositories>

<dependencies>
    ....
    <!--This adds BossbarCountdown to the build -->
    <dependency>
        <groupId>de.polarwolf</groupId>
        <artifactId>BossbarCountdown</artifactId>
        <version>1.2</version>
        <scope>provided</scope>
    </dependency>
    ....
</dependencies>

API-Provider

In your code, you can query the static BBCDProvider-object to give you an instance of the API-object.

BBCDAPI bbcdAPI = BBCDProvider.getAPI();

With this API-Object you can execute all functions as described in the following chapters.

⚠️ **GitHub.com Fallback** ⚠️