Skip to content

Commit

Permalink
bStats chart
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jun 20, 2020
1 parent f65198a commit b748de1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/xyz/jpenilla/dsgraph/DSGraph.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import org.bstats.bukkit.Metrics;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.concurrent.Callable;

public final class DSGraph extends JavaPlugin {
@Getter
private static DSGraph instance;
Expand Down Expand Up @@ -39,6 +41,8 @@ public void onEnable() {

int pluginId = 7828;
Metrics metrics = new Metrics(this, pluginId);
metrics.addCustomChart(new Metrics.SimplePie("amount_of_items_tracked", () -> String.valueOf(cfg.getFiles().size())));

}

@Override
Expand Down

0 comments on commit b748de1

Please sign in to comment.