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
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
Copy
name: ExamplePluginversion: 1.0author: authormain: your.main.path.Heresoftdepend: ["VoiidCountdownTimer"] # This sets Voiid Countdown Timer as an optional dependency for your plugin.
Copy
name: ExamplePluginversion: 1.0author: authormain: your.main.path.Heredependencies: server: VoiidCountdownTimer: load: BEFORE # This means that Voiid Countdown Timer will load BEFORE your plugin. required: false # This sets Voiid Countdown Timer as an optional dependency for your plugin.
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