新增数据库类型bstats统计(匿名)

This commit is contained in:
zhangyuheng 2024-07-04 10:22:14 +08:00
parent 4498267c50
commit a119cf747f
2 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<groupId>cn.lunadeer</groupId>
<artifactId>Dominion</artifactId>
<version>1.35.0-beta</version>
<version>1.35.1-beta</version>
<packaging>jar</packaging>
<name>Dominion</name>

View File

@ -49,6 +49,8 @@ public final class Dominion extends JavaPlugin {
Objects.requireNonNull(Bukkit.getPluginCommand("dominion")).setExecutor(new Commands());
bStatsMetrics metrics = new bStatsMetrics(this, 21445);
metrics.addCustomChart(new bStatsMetrics.SimplePie("database", () -> config.getDbType()));
if (config.getCheckUpdate()) {
giteaReleaseCheck = new GiteaReleaseCheck(this,
"https://ssl.lunadeer.cn:14446",