Skip to content

Downloads

Diogo Correia edited this page Jan 25, 2025 · 33 revisions

Thanks for choosing Triton. We have an API, so you can integrate it on your plugins on any message, even if it's not supported by the plugin at the moment.

Adding Triton to your Project

The recommended way to use Triton's API is through the Gradle/Maven artifact. Note that the Maven repository mentioned below is only available since Triton v3.11.2.

Gradle (Groovy)

Firstly, add the following repository to your project:

repositories {
    maven {
        url "https://repo.diogotc.com/releases"
    }
}

Then, you should be able to add the Triton API dependency. Make sure to NOT shade it into your plugin by using compileOnly.

dependencies {
    // change the version to whatever the latest one is
    compileOnly "com.rexcantor64.triton:triton-api:3.11.2"
}

Maven

Firstly, add the following repository to your project:

<repository>
  <id>diogotc-repository-releases</id>
  <name>Diogo Correia's Releases Repository</name>
  <url>https://repo.diogotc.com/releases</url>
</repository>

Then, you should be able to add the Triton API dependency. Make sure to NOT shade it into your plugin by setting the appropriate scope.

<dependency>
  <groupId>com.rexcantor64.triton</groupId>
  <artifactId>triton-api</artifactId>
  <!-- change the version to whatever the latest one is -->
  <version>3.11.2</version>
  <scope>provided</scope>
</dependency>

Alternative Downloads

For older versions, a Maven repository might not be available. You may try JitPack for some versions.

Alternatively, feel free to download the API jar and add it manually:

  1. Download the right API version
    It's important to have the same version of the plugin installed on the server, so you don't miss any features or try to use some you don't have yet.
    Choose the right version from the list on the bottom of this page.

  2. Add it as a dependency on your IDE
    The second step is to add it as your dependency on your IDE. The steps are different for each IDE, but I'll leave a list here to the wiki of the most famous ones.

Old API Versions Download:

For 3.0.0 and up, check the releases tab and the aforementioned Maven repositories.

Clone this wiki locally