From 0332929531eebd9682c88162ae0319fcf0c00870 Mon Sep 17 00:00:00 2001 From: wizjany Date: Fri, 31 Jan 2020 11:18:27 -0500 Subject: [PATCH] Bump bStats to 1.7, adding plugin id. --- worldguard-bukkit/build.gradle.kts | 4 ++-- .../java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/worldguard-bukkit/build.gradle.kts b/worldguard-bukkit/build.gradle.kts index 332a7fc1..b1a66025 100644 --- a/worldguard-bukkit/build.gradle.kts +++ b/worldguard-bukkit/build.gradle.kts @@ -28,7 +28,7 @@ "implementation"("io.papermc:paperlib:1.0.2") "api"("com.sk89q.worldedit:worldedit-bukkit:${Versions.WORLDEDIT}") { isTransitive = false } "implementation"("com.sk89q:commandbook:2.3") { isTransitive = false } - "implementation"("org.bstats:bstats-bukkit:1.5") + "implementation"("org.bstats:bstats-bukkit:1.7") } tasks.named("install") { @@ -61,7 +61,7 @@ tasks.named("shadowJar") { dependencies { relocate("org.bstats", "com.sk89q.worldguard.bukkit.bstats") { - include(dependency("org.bstats:bstats-bukkit:1.5")) + include(dependency("org.bstats:bstats-bukkit:1.7")) } relocate ("io.papermc.lib", "com.sk89q.worldguard.bukkit.paperlib") { include(dependency("io.papermc:paperlib:1.0.2")) diff --git a/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java b/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java index 714c790e..5660a1b0 100644 --- a/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java +++ b/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java @@ -214,7 +214,7 @@ public void onEnable() { ((SimpleFlagRegistry) WorldGuard.getInstance().getFlagRegistry()).setInitialized(true); // Enable metrics - final Metrics metrics = new Metrics(this); + final Metrics metrics = new Metrics(this, 3283); // bStats plugin id if (metrics.isEnabled() && platform.getGlobalStateManager().extraStats) { setupCustomCharts(metrics); }