From f2b6dbd9b3bb00f816918a04ffa674c41187a646 Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Sat, 20 Apr 2024 20:19:14 -0400 Subject: [PATCH] [ci-skip] Disable metrics because I don't care about it --- paper/build.gradle.kts | 4 ++-- .../java/com/badbones69/crazycrates/CrazyCrates.java | 8 ++++---- .../crazycrates/commands/subs/CrateBaseCommand.java | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/paper/build.gradle.kts b/paper/build.gradle.kts index 5cb4497e3..ceee1f963 100644 --- a/paper/build.gradle.kts +++ b/paper/build.gradle.kts @@ -15,7 +15,7 @@ dependencies { implementation(libs.config.me) - implementation(libs.metrics) + //implementation(libs.metrics) implementation(libs.vital) @@ -53,7 +53,7 @@ tasks { shadowJar { listOf( "dev.triumphteam", - "org.bstats", + //"org.bstats", "ch.jalu" ).forEach { relocate(it, "libs.$it") } } diff --git a/paper/src/main/java/com/badbones69/crazycrates/CrazyCrates.java b/paper/src/main/java/com/badbones69/crazycrates/CrazyCrates.java index 4419896d2..07d4ec917 100644 --- a/paper/src/main/java/com/badbones69/crazycrates/CrazyCrates.java +++ b/paper/src/main/java/com/badbones69/crazycrates/CrazyCrates.java @@ -82,12 +82,12 @@ public void onEnable() { // Load commands. CommandManager.load(); - this.metrics = new MetricsManager(); + //this.metrics = new MetricsManager(); // Load metrics. - if (ConfigManager.getConfig().getProperty(ConfigKeys.toggle_metrics)) { - this.metrics.start(); - } + //if (ConfigManager.getConfig().getProperty(ConfigKeys.toggle_metrics)) { + //this.metrics.start(); + //} List.of( // Menu listeners. diff --git a/paper/src/main/java/com/badbones69/crazycrates/commands/subs/CrateBaseCommand.java b/paper/src/main/java/com/badbones69/crazycrates/commands/subs/CrateBaseCommand.java index 0c1e6e83e..3d62d6efe 100644 --- a/paper/src/main/java/com/badbones69/crazycrates/commands/subs/CrateBaseCommand.java +++ b/paper/src/main/java/com/badbones69/crazycrates/commands/subs/CrateBaseCommand.java @@ -147,11 +147,11 @@ public void onReload(CommandSender sender) { this.fileManager.create(); - if (!this.config.getProperty(ConfigKeys.toggle_metrics)) { - this.plugin.getMetrics().stop(); - } else { - this.plugin.getMetrics().start(); - } + //if (!this.config.getProperty(ConfigKeys.toggle_metrics)) { + // this.plugin.getMetrics().stop(); + //} else { + // this.plugin.getMetrics().start(); + //} FileConfiguration locations = Files.locations.getFile(); FileConfiguration data = Files.data.getFile();