Added bstats metrics as mcstats isn't really stable anymore

This commit is contained in:
Phoenix616 2017-07-05 15:23:28 +01:00
parent 2e7613ae9c
commit 9269fc4049
2 changed files with 19 additions and 4 deletions

17
pom.xml
View File

@ -28,6 +28,10 @@
<id>mcstats-releases</id>
<url>http://repo.mcstats.org/content/repositories/releases/</url>
</repository>
<repository>
<id>bstats-repo</id>
<url>http://repo.bstats.org/content/repositories/releases/</url>
</repository>
<repository>
<id>vault-repo</id>
<url>http://nexus.hc.to/content/repositories/pub_releases/</url>
@ -89,6 +93,12 @@
</exclusions>
</dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit-lite</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>net.milkbowl.vault</groupId>
<artifactId>Vault</artifactId>
@ -284,6 +294,7 @@
<artifactSet>
<includes>
<include>org.mcstats.bukkit</include>
<include>org.bstats:*</include>
<include>net.gravitydevelopment.updater</include>
<include>com.j256.ormlite</include>
<include>org.apache.logging.log4j</include>
@ -292,7 +303,11 @@
<relocations>
<relocation>
<pattern>org.mcstats</pattern>
<shadedPattern>com.Acrobot.ChestShop</shadedPattern>
<shadedPattern>com.Acrobot.ChestShop.Metrics.MCStats</shadedPattern>
</relocation>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>com.Acrobot.ChestShop.Metrics.BStats</shadedPattern>
</relocation>
<relocation>
<pattern>net.gravitydevelopment.updater</pattern>

View File

@ -55,7 +55,6 @@ import org.bukkit.event.Listener;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.JavaPlugin;
import org.mcstats.Metrics;
import java.io.File;
import java.io.IOException;
@ -346,10 +345,11 @@ public class ChestShop extends JavaPlugin {
private void startStatistics() {
try {
new Metrics(this).start();
new org.mcstats.Metrics(this).start();
} catch (IOException ex) {
ChestShop.getBukkitLogger().severe("There was an error while submitting statistics.");
ChestShop.getBukkitLogger().severe("There was an error while submitting MCStats statistics.");
}
new org.bstats.MetricsLite(this);
}
private static final int PROJECT_BUKKITDEV_ID = 31263;