Installation
Add FastStats to your Minecraft server project
Installation
Add the FastStats SDK to your project using Maven or Gradle.
<repository>
<id>thenextlvl-releases</id>
<name>TheNextLvl</name>
<url>https://repo.thenextlvl.net/releases</url>
</repository>maven {
name = "thenextlvlReleases"
url = uri("https://repo.thenextlvl.net/releases")
}maven {
name "thenextlvlReleases"
url "https://repo.thenextlvl.net/releases"
}resolvers +=
"thenextlvl-releases"
at "https://repo.thenextlvl.net/releases"Platform-Specific Artifacts
Choose the artifact for your platform:
| Platform | Artifact ID |
|---|---|
| Bukkit/Spigot/Paper | bukkit |
| BungeeCord | bungeecord |
| Fabric | fabric |
| Hytale | hytale |
| Minestom | minestom |
| Nukkit | nukkit |
| Sponge | sponge |
| Velocity | velocity |
<dependency>
<groupId>dev.faststats.metrics</groupId>
<artifactId>bukkit</artifactId>
<version>0.14.0</version>
</dependency>implementation("dev.faststats.metrics:bukkit:0.14.0")implementation "dev.faststats.metrics:bukkit:0.14.0""dev.faststats.metrics" %% "bukkit" %% "0.14.0"Shading
To include FastStats directly in your plugin JAR, you can use the Maven Shade or Gradle Shadow Plugin.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<relocation>
<pattern>dev.faststats</pattern>
<shadedPattern>your.plugin.libs.faststats</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>plugins {
id("com.gradleup.shadow") version "9.3.0"
}
tasks.shadowJar {
relocate("dev.faststats", "your.plugin.libs.faststats") // optionally relocate the package
}plugins {
id 'com.gradleup.shadow' version '9.3.0'
}
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
relocate('dev.faststats', 'your.plugin.libs.faststats') // optionally relocate the package
}