Setup

This is how you add the lib to your project.


#Version

Make sure to replace {version} with the version you want to use.

#Platform

Make sure to replace {platform} with one of the following:

  • bukkit - For any Bukkit based plugin, Spigot, Paper, etc.
  • jda-prefixed - For prefixed commands for JDA, for example !test.
  • jda-slash - For JDA slash commands.

You need to add the dependency to your build.gradle.kts.

repositories {
    maven("https://repo.triumphteam.dev/snapshots/")
}

dependencies {
    implementation("dev.triumphteam:triumph-cmd-{platform}:{version}") // Replace version here 
}

To include the lib in your project, you need to add shadow plugin build.gradle.kts.
Replace [YOUR PACKAGE] with your plugin's package, for example me.myplugin.plugin.

// This goes on the top of the build script.
plugins {
    id("io.github.goooler.shadow") version "8.1.8"
}

// This can go anywhere.
shadowJar {
    relocate("dev.triumphteam.cmd", "[YOUR PACKAGE].cmd")
}

You need to add the dependency to your build.gradle.

repositories {
    maven { url = "https://repo.triumphteam.dev/snapshots/" }
}

dependencies {
    implementation "dev.triumphteam:triumph-cmd-{platform}:{version}" // Replace version here 
}

To include the lib in your project, you need to add shadow plugin build.gradle.
Replace [YOUR PACKAGE] with your plugin's package, for example me.myplugin.plugin.

// This goes on the top of the build script.
plugins {
    id "io.github.goooler.shadow" version "8.1.8"
}

// This can go anywhere.
shadowJar {
    relocate("dev.triumphteam.cmd", "[YOUR PACKAGE].cmd")
}

You need to add the dependency to your pom.xml.

<repositories>
    <repository>
        <id>repo</id>
        <url>https://repo.triumphteam.dev/snapshots/</url>
    </repository>
</repositories>

<dependency>
<groupId>dev.triumphteam</groupId>
<artifactId>triumph-cmd-{platform}</artifactId>
<version>{version}</version> <!-- replace version here -->
</dependency>

To include the framework in your project, you need the shade plugin.
Replace [YOUR PACKAGE] with your plugin's package, for example me.myplugin.plugin.

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-shade-plugin</artifactId>
    <version>3.6.0</version>
    <configuration>
        <relocations>
            <relocation>
                <pattern>dev.triumphteam.cmd</pattern>
                <shadedPattern>[YOUR PACKAGE].cmd</shadedPattern> <!-- Replace package here -->
            </relocation>
        </relocations>
    </configuration>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>shade</goal>
            </goals>
        </execution>
    </executions>
</plugin>
Edit this page on GitHub

On this page

Code copied to clipboard!