mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-27 04:25:14 +01:00
Added bstats metrics as mcstats isn't really stable anymore
This commit is contained in:
parent
2e7613ae9c
commit
9269fc4049
17
pom.xml
17
pom.xml
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user