From 0bba9c5ac751cf09c1be176bae889894d3ba411d Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Sun, 24 Jan 2021 10:44:22 +0100 Subject: [PATCH] Update bStats --- worldedit-bukkit/build.gradle.kts | 11 ++--------- .../com/sk89q/worldedit/bukkit/WorldEditPlugin.java | 3 +-- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/worldedit-bukkit/build.gradle.kts b/worldedit-bukkit/build.gradle.kts index 89f17e9dc..70ead848d 100644 --- a/worldedit-bukkit/build.gradle.kts +++ b/worldedit-bukkit/build.gradle.kts @@ -57,13 +57,6 @@ repositories { includeGroupByRegex("org.inventivetalent.*") } } - maven { - name = "CodeMC" - url = uri("https://repo.codemc.org/repository/maven-public/") - content { - includeGroup("org.bstats") - } - } maven { name = "IntellectualSites 3rd Party" url = uri("https://mvn.intellectualsites.com/content/repositories/thirdparty") @@ -116,7 +109,7 @@ dependencies { } api("com.intellectualsites.paster:Paster:1.0.1-SNAPSHOT") // Third party - implementation("org.bstats:bstats-bukkit:1.8") + implementation("org.bstats:bstats-bukkit:2.1.0") compileOnlyApi("org.inventivetalent:mapmanager:1.7.+") { isTransitive = false } implementation("com.github.TechFortress:GriefPrevention:16.+") { isTransitive = false } implementation("com.massivecraft:mcore:7.0.1") { isTransitive = false } @@ -163,7 +156,7 @@ tasks.named("shadowJar") { include(dependency("it.unimi.dsi:fastutil")) } relocate("org.bstats", "com.boydti.metrics") { - include(dependency("org.bstats:bstats-bukkit:1.8")) + include(dependency("org.bstats:bstats-bukkit:2.1.0")) } relocate("com.intellectualsites.paster", "com.boydti.fawe.paster") { include(dependency("com.intellectualsites.paster:Paster:1.0.1-SNAPSHOT")) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index d50d23813..17c22d8c9 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -96,7 +96,6 @@ public class WorldEditPlugin extends JavaPlugin { //implements TabCompleter private static final Logger log = LoggerFactory.getLogger(WorldEditPlugin.class); public static final String CUI_PLUGIN_CHANNEL = "worldedit:cui"; private static WorldEditPlugin INSTANCE; - private static final int BSTATS_PLUGIN_ID = 1403; private BukkitImplAdapter bukkitAdapter; private BukkitServerInterface server; @@ -174,7 +173,7 @@ public class WorldEditPlugin extends JavaPlugin { //implements TabCompleter } // Setup metrics - new Metrics(this, BSTATS_PLUGIN_ID); + new Metrics(this, 1403); // Check whether the server runs on 11 or greater checkJvm();