mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-22 05:25:11 +01:00
2.53.1 - add custom metric chart for mysql usage
This commit is contained in:
parent
63e9bcc3c6
commit
0cbc9482e1
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user