BeastTokensAPI - MrAxeTv/BeastTokensAPI GitHub Wiki

# This page is about using BeastTokensAPI in your own plugin.

Please note, that the examples in this page are only available for BeastTokens 3.9.6 or higher! First steps

Before you can actually make use of BeastTokensAPI, you first have to import it into your project.

Import with Maven

To import BeastTokensAPI, simply add the following code to your pom.xml Replace {VERSION} with the version listed at the top of this page.

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


<dependency>
 <groupId>com.github.MrAxeTv</groupId>
 <artifactId>BeastTokensAPI</artifactId>
 <version>{VERSION}</version>
</dependency>

Import with Gradle

Here is how you can import BeastTokensAPI through gradle. Put this into your Gradle.build. Replace {VERSION} with the version listed at the top of this page.

 allprojects {
  repositories {
	...
	maven { url 'https://jitpack.io' }
	 }
   }

dependencies {
  implementation 'com.github.MrAxeTv:BeastTokensAPI:{VERSION}'
 }

Set BeastTokensAPI as (soft)depend

Next step is to go to your plugin.yml and add "BeastTokens" as a depend or softdepend, depending (no pun intended) on if it is optional or not.

Example Softdepend:

name: ExamplePlugin
version: 1.0
author: author
main: your.main.path.here

softdepend: [BeastTokens] # This is used, if your plugin works without BeastTOkens.

Example Depend:

name: ExamplePlugin
version: 1.0
author: author
main: your.main.path.here

depend: [BeastTokens] # If your plugin requires BeastTokens, to work, use this.
⚠️ **GitHub.com Fallback** ⚠️