use of me.botsko.prism.actions.ActionMeter in project Prism-Bukkit by prism.
the class Prism method checkPluginDependencies.
private void checkPluginDependencies() {
// DripReporter
ApiHandler.configureMonitor();
// WorldEdit
ApiHandler.hookWorldEdit();
// bstats
if (getConfig().getBoolean("prism.allow-metrics")) {
Prism.log("Prism bStats metrics are enabled - thank you!");
// assigned by bstats.org
int pluginId = 4365;
Metrics metrics = new Metrics(this, pluginId);
if (!metrics.isEnabled()) {
Prism.warn("bStats failed to initialise! Please check Prism/bStats configs.");
}
Metrics.MultiLineChart blockBreaksHour = new Metrics.MultiLineChart("//TODO", ActionMeter::getMetricMeter);
metrics.addCustomChart(blockBreaksHour);
}
}
Aggregations