We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f65198a commit b748de1Copy full SHA for b748de1
src/main/java/xyz/jpenilla/dsgraph/DSGraph.java
@@ -9,6 +9,8 @@
9
import org.bstats.bukkit.Metrics;
10
import org.bukkit.plugin.java.JavaPlugin;
11
12
+import java.util.concurrent.Callable;
13
+
14
public final class DSGraph extends JavaPlugin {
15
@Getter
16
private static DSGraph instance;
@@ -39,6 +41,8 @@ public void onEnable() {
39
41
40
42
int pluginId = 7828;
43
Metrics metrics = new Metrics(this, pluginId);
44
+ metrics.addCustomChart(new Metrics.SimplePie("amount_of_items_tracked", () -> String.valueOf(cfg.getFiles().size())));
45
46
}
47
48
@Override
0 commit comments