Search in sources :

Example 1 with ActionMeter

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);
    }
}
Also used : Metrics(org.bstats.bukkit.Metrics) ActionMeter(me.botsko.prism.actions.ActionMeter)

Aggregations

ActionMeter (me.botsko.prism.actions.ActionMeter)1 Metrics (org.bstats.bukkit.Metrics)1