Add bStats for metrics.

Add bStats for plugin metrics and statistics.
This commit is contained in:
Jesse Prescott 2017-08-07 22:34:46 +01:00
parent 06834c05b1
commit e1135bc55c
2 changed files with 29 additions and 0 deletions

21
pom.xml
View File

@ -15,6 +15,13 @@
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<repositories>
<repository>
<id>bstats-repo</id>
<url>http://repo.bstats.org/content/repositories/releases/</url>
</repository>
</repositories>
<dependencies>
<dependency> <!-- Spigot -->
<groupId>org.spigotmc</groupId>
@ -22,6 +29,11 @@
<version>1.12.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency> <!-- bStats -->
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
<build>
@ -85,7 +97,16 @@
<exclude>junit</exclude>
<exclude>com.sk89q.worldguard</exclude>
</excludes>
<includes>
<include>org.bstats:*</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>com.gmail.bleedobsidian</shadedPattern>
</relocation>
</relocations>
</configuration>
</plugin>
</plugins>

View File

@ -15,6 +15,7 @@
package com.gmail.bleedobsidian.itemcase;
import org.bstats.bukkit.Metrics;
import org.bukkit.plugin.java.JavaPlugin;
/**
@ -25,4 +26,11 @@ import org.bukkit.plugin.java.JavaPlugin;
*/
public class ItemCase extends JavaPlugin {
@Override
public void onEnable() {
// Start metrics.
Metrics metrics = new Metrics(this);
}
}