Skip to content

Commit

Permalink
[ci-skip] Disable metrics because I don't care about it
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Apr 21, 2024
1 parent 2d2b0aa commit f2b6dbd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions paper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies {

implementation(libs.config.me)

implementation(libs.metrics)
//implementation(libs.metrics)

implementation(libs.vital)

Expand Down Expand Up @@ -53,7 +53,7 @@ tasks {
shadowJar {
listOf(
"dev.triumphteam",
"org.bstats",
//"org.bstats",
"ch.jalu"
).forEach { relocate(it, "libs.$it") }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit f2b6dbd

Please sign in to comment.