Update bStats to 2.1.0

This commit is contained in:
Eric 2022-08-20 22:35:41 +02:00
parent d88d32f939
commit dbcae797db
2 changed files with 4 additions and 3 deletions

View File

@ -51,7 +51,7 @@
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>1.7</version>
<version>2.1.0</version>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>

View File

@ -12,6 +12,7 @@ import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import org.bstats.bukkit.Metrics;
import org.bstats.charts.SimplePie;
import org.bukkit.command.Command;
import org.bukkit.command.CommandMap;
import org.bukkit.command.SimpleCommandMap;
@ -116,8 +117,8 @@ public class ShopChestImpl extends ShopChest {
private void loadMetrics() {
Metrics metrics = new Metrics(this, 1726);
metrics.addCustomChart(new Metrics.SimplePie("database_type", () -> Config.DATABASE_TYPE.get().toString()));
metrics.addCustomChart(new Metrics.SimplePie("creative_setting", () ->
metrics.addCustomChart(new SimplePie("database_type", () -> Config.DATABASE_TYPE.get().toString()));
metrics.addCustomChart(new SimplePie("creative_setting", () ->
Config.FEATURES_CREATIVE_ITEM_SELECTION.get() ? "Enabled" : "Disabled"));
}