Lorenzo0111's Plugins
Discord
QualityArmory
QualityArmory
  • Installation
  • Configuration
    • Main Configuration
    • ResourcePack Configuration
  • Items Config
    • ResourcePack Model
    • Gun Configuration
    • Ammo Configuration
    • Armor Configuration
  • Developers
    • Adding the Dependency
    • QualityArmory API
  • Downloads
    • SpigotMC
    • Modrinth
    • CurseForge
Powered by GitBook
On this page
  • Java Dependency
  • Plugin Dependency

Was this helpful?

Edit on GitHub
Export as PDF
  1. Developers

Adding the Dependency

PreviousArmor ConfigurationNextQualityArmory API

Last updated 25 days ago

Was this helpful?

In order to use the QualityArmory API you need to add the plugin as a dependency. Replace VERSION with the latest version:

Java Dependency

To add QA to your project using maven, copy the following into the POM.xml.

<repository>
    <id>codemc-repo</id>
    <url>https://repo.codemc.io/repository/maven-public/</url>
</repository>

<dependency>
    <groupId>me.zombie_striker</groupId>
    <artifactId>QualityArmory</artifactId>
    <version>VERSION</version>
    <scope>provided</scope>
</dependency>

To add QA to your project using gradle, copy the following into the build.gradle.

repositories {
    maven {
        name = "codemc-repo"
        url = "https://repo.codemc.io/repository/maven-public/"
    }
}

dependencies {
    compileOnly 'me.zombie_striker:QualityArmory:VERSION'
}

To add QA to your project using gradle, copy the following into the build.gradle.kts.

repositories {
    maven {
        name = "codemc-repo"
        url = uri("https://repo.codemc.io/repository/maven-public/")
    }
}

dependencies {
    compileOnly("me.zombie_striker:QualityArmory:VERSION")
}

Plugin Dependency

Add the plugin as a dependency to your plugin by editing the plugin.yml file by including the following line under the depend section:

# Use this if QualityArmory is required
depend: [QualityArmory]
# Use this if QualityArmory is optional
softdepend: [QualityArmory]

This ensures that your plugin will load after QualityArmory. If your plugin requires specific features from QualityArmory at runtime, remember to also use appropriate checks in your code to confirm that QualityArmory is enabled.

If this does not load, enable JavaScript on your browser