diff --git a/Plan/build.gradle b/Plan/build.gradle index cb78ba264..4b6c4ae82 100644 --- a/Plan/build.gradle +++ b/Plan/build.gradle @@ -90,7 +90,7 @@ subprojects { ext.geoIpVersion = "2.15.0" ext.gsonVersion = "2.8.6" ext.guavaVersion = "28.0-jre" - ext.bstatsVersion = "1.4" + ext.bstatsVersion = "1.8" ext.placeholderapiVersion = "2.10.9" ext.nkPlaceholderapiVersion = "1.3-SNAPSHOT" diff --git a/Plan/bukkit/src/main/java/com/djrapitops/plan/BStatsBukkit.java b/Plan/bukkit/src/main/java/com/djrapitops/plan/BStatsBukkit.java index 3f3288990..3a57e689d 100644 --- a/Plan/bukkit/src/main/java/com/djrapitops/plan/BStatsBukkit.java +++ b/Plan/bukkit/src/main/java/com/djrapitops/plan/BStatsBukkit.java @@ -30,7 +30,7 @@ public class BStatsBukkit { public void registerMetrics() { if (metrics == null) { - metrics = new Metrics(plugin); + metrics = new Metrics(plugin, 1240); } registerConfigSettingGraphs(); } diff --git a/Plan/bungeecord/src/main/java/com/djrapitops/plan/BStatsBungee.java b/Plan/bungeecord/src/main/java/com/djrapitops/plan/BStatsBungee.java index 3662706f3..5769ac535 100644 --- a/Plan/bungeecord/src/main/java/com/djrapitops/plan/BStatsBungee.java +++ b/Plan/bungeecord/src/main/java/com/djrapitops/plan/BStatsBungee.java @@ -36,7 +36,8 @@ public class BStatsBungee { public void registerMetrics() { if (metrics == null) { - metrics = new Metrics(plugin); + int pluginId = 3085; + metrics = new Metrics(plugin, pluginId); } registerConfigSettingGraphs(); } diff --git a/Plan/sponge/src/main/java/com/djrapitops/plan/PlanSponge.java b/Plan/sponge/src/main/java/com/djrapitops/plan/PlanSponge.java index 4fc0ed5e2..2546ae72d 100644 --- a/Plan/sponge/src/main/java/com/djrapitops/plan/PlanSponge.java +++ b/Plan/sponge/src/main/java/com/djrapitops/plan/PlanSponge.java @@ -63,7 +63,7 @@ import java.util.Optional; public class PlanSponge extends SpongePlugin implements PlanPlugin { @com.google.inject.Inject - private Metrics2 metrics; + private Metrics2.Factory metrics; @com.google.inject.Inject private Logger slf4jLogger; @@ -96,8 +96,9 @@ public class PlanSponge extends SpongePlugin implements PlanPlugin { locale = system.getLocaleSystem().getLocale(); system.enable(); + int pluginId = 3086; new BStatsSponge( - metrics, + metrics.make(pluginId), system.getDatabaseSystem().getDatabase() ).registerMetrics();