updated bstats to 1.8 and enabled it again
This commit is contained in:
parent
a2be7dc1e4
commit
b4da8648fb
2
pom.xml
2
pom.xml
|
@ -98,7 +98,7 @@
|
|||
<dependency>
|
||||
<groupId>org.bstats</groupId>
|
||||
<artifactId>bstats-bukkit</artifactId>
|
||||
<version>1.5</version>
|
||||
<version>1.8</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
|
|
@ -63,6 +63,7 @@ import fr.zcraft.quartzlib.tools.PluginLogger;
|
|||
import fr.zcraft.quartzlib.tools.UpdateChecker;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import org.bstats.bukkit.Metrics;
|
||||
|
||||
public final class ImageOnMap extends QuartzPlugin {
|
||||
private static final String IMAGES_DIRECTORY_NAME = "images";
|
||||
|
@ -148,11 +149,11 @@ public final class ImageOnMap extends QuartzPlugin {
|
|||
}
|
||||
|
||||
if (PluginConfiguration.COLLECT_DATA.get()) {
|
||||
|
||||
final Metrics metrics = new Metrics(this);
|
||||
metrics.addCustomChart(new Metrics.SingleLineChart("rendered-images", MapManager::getImagesCount));
|
||||
metrics.addCustomChart(new Metrics.SingleLineChart("used-minecraft-maps", MapManager::getMapCount));
|
||||
} else {
|
||||
PluginLogger.warning("Collect data disabled");
|
||||
//final Metrics metrics = new Metrics(this);
|
||||
//metrics.addCustomChart(new Metrics.SingleLineChart("rendered-images", MapManager::getImagesCount));
|
||||
//metrics.addCustomChart(new Metrics.SingleLineChart("used-minecraft-maps", MapManager::getMapCount));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue