Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dependencies {
exclude(group = "com.sun.xml.bind", module = "jaxb-xjc") // Else Remapping will yell of duplicated classes
}
implementation(libs.com.googlecode.json.simple)
implementation(libs.bstats.bukkit)
implementation(platform(libs.fawe.bom))
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Core")
compileOnly("com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit") { isTransitive = false }
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ com-gradleup-shadow = "9.3.1" # https://github.com/GradleUp/shadow/releases
alpslib-io = "1.2.0" # https://mvn.alps-bte.com/service/rest/repository/browse/alps-bte/com/alpsbte/alpslib/alpslib-io/
alpslib-utils = "1.4.0" # https://mvn.alps-bte.com/service/rest/repository/browse/alps-bte/com/alpsbte/alpslib/alpslib-utils/
fawe-bom = "1.55" # Ref: https://github.com/IntellectualSites/bom
bstats = "3.1.0" # https://central.sonatype.com/artifact/org.bstats/bstats-bukkit

[libraries]
com-alpsbte-alpslib-alpslib-libpsterra = { module = "com.alpsbte.alpslib:alpslib-libpsterra", version.ref = "com-alpsbte-alpslib-alpslib-libpsterra" }
Expand All @@ -37,6 +38,7 @@ com-googlecode-json-simple = { module = "com.googlecode.json-simple:json-simple"
alpslib-io = { module = "com.alpsbte.alpslib:alpslib-io", version.ref = "alpslib-io" }
alpslib-utils = { module = "com.alpsbte.alpslib:alpslib-utils", version.ref = "alpslib-utils" }
fawe-bom = { module = "com.intellectualsites.bom:bom-newest", version.ref = "fawe-bom" }
bstats-bukkit = { module = "org.bstats:bstats-bukkit", version.ref = "bstats" }

[plugins]
lombok = { id = "io.freefair.lombok", version.ref = "io-freefair-lombok" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import net.buildtheearth.buildteamtools.modules.common.components.version.VersionComponent;
import net.buildtheearth.buildteamtools.modules.common.listeners.CommandListener;
import net.buildtheearth.buildteamtools.modules.common.listeners.ExceptionListener;
import net.buildtheearth.buildteamtools.modules.common.metrics.MetricsManager;
import net.buildtheearth.buildteamtools.modules.generator.GeneratorModule;
import net.buildtheearth.buildteamtools.modules.network.NetworkModule;
import net.buildtheearth.buildteamtools.modules.stats.StatsModule;
Expand Down Expand Up @@ -75,6 +76,7 @@ public void enable() {
dependencyComponent = new DependencyComponent();
versionComponent = new VersionComponent();

MetricsManager.init(BuildTeamTools.getInstance());

// Start the timer
startTimer();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package net.buildtheearth.buildteamtools.modules.common.metrics;

import org.bstats.bukkit.Metrics;
import org.bukkit.plugin.java.JavaPlugin;

public class MetricsManager {

private static final int BSTATS_PLUGIN_ID = 29076;

public static void init(JavaPlugin plugin) {
new Metrics(plugin, BSTATS_PLUGIN_ID);
}
}