Skip to main content

First steps

Before you can use the Voiid Countdown Timer API, you must first import it into your project. Use the following code example that matches your dependency manager.
  • Maven
  • Gradle
Step 1. Add the JitPack repository to your build file. Add to pom.xml
<repository>
  <id>jitpack.io</id>
  <url>https://jitpack.io</url>
</repository>
Step 2. Add the dependency
<dependency>
  <groupId>com.github.Voiid-Studios</groupId>
  <artifactId>voiidcountdown</artifactId>
  <version>2.0.2</version>
  <scope>provided</scope>
</dependency>

Set Voiid Countdown Timer as (soft)depend

Next step is to go to your plugin.yml or paper-plugin.yml and add Voiid Countdown Timer as a depend or softdepend, depending (no pun intended) on if it is optional or not.
  • plugin.yml
  • paper-plugin.yml
name: ExamplePlugin
version: 1.0
author: author
main: your.main.path.Here

softdepend: ["VoiidCountdownTimer"] # This sets Voiid Countdown Timer as an optional dependency for your plugin.

Availability Check

Before using the API, it is recommended to check if it is available using:
if (VCTAPI.isAvailable()) {
    // The API is ready to use
}
This function will return true if the API is available or false otherwise.

You’re ready to start using the API!

Now that you have imported the API and verified its availability, you are ready to start using it. From here, you can explore the following sections to learn how to interact with the VCT API
I