2.53.1 - add custom metric chart for mysql usage

This commit is contained in:
Kiran Hart 2022-01-18 13:12:19 -05:00
parent 63e9bcc3c6
commit 0cbc9482e1

View File

@ -254,6 +254,7 @@ public class AuctionHouse extends TweetyPlugin {
// metrics
this.metrics = new Metrics(this, 6806);
this.metrics.addCustomChart(new Metrics.SimplePie("using_mysql", () -> String.valueOf(Settings.DATABASE_USE.getBoolean())));
getServer().getScheduler().runTaskLater(this, () -> {
if (!ServerProject.isServer(ServerProject.SPIGOT, ServerProject.PAPER)) {