Skip to content

Commit b748de1

Browse files
committed
bStats chart
1 parent f65198a commit b748de1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/xyz/jpenilla/dsgraph/DSGraph.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
import org.bstats.bukkit.Metrics;
1010
import org.bukkit.plugin.java.JavaPlugin;
1111

12+
import java.util.concurrent.Callable;
13+
1214
public final class DSGraph extends JavaPlugin {
1315
@Getter
1416
private static DSGraph instance;
@@ -39,6 +41,8 @@ public void onEnable() {
3941

4042
int pluginId = 7828;
4143
Metrics metrics = new Metrics(this, pluginId);
44+
metrics.addCustomChart(new Metrics.SimplePie("amount_of_items_tracked", () -> String.valueOf(cfg.getFiles().size())));
45+
4246
}
4347

4448
@Override

0 commit comments

Comments
 (0)