mirror of
https://github.com/NekoMonci12/Git-Craft.git
synced 2025-12-19 14:59:22 +00:00
Add bStats Metrics
This commit is contained in:
@@ -19,6 +19,7 @@ dependencies {
|
||||
compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
|
||||
implementation("org.eclipse.jgit:org.eclipse.jgit:6.6.0.202305301015-r")
|
||||
implementation("com.h2database:h2:2.2.224")
|
||||
implementation("org.bstats:bstats-bukkit:3.0.2")
|
||||
}
|
||||
|
||||
// Disable default JAR task
|
||||
|
||||
@@ -2,17 +2,24 @@ package org.yuemi;
|
||||
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.yuemi.commands.CommandRegistrar;
|
||||
import org.bstats.bukkit.Metrics;
|
||||
|
||||
public class App extends JavaPlugin {
|
||||
@Override
|
||||
public void onEnable() {
|
||||
saveDefaultConfig();
|
||||
getLogger().info("Yuemi Git Plugin enabled.");
|
||||
getLogger().info("Git Craft Plugin enabled.");
|
||||
new CommandRegistrar(this).registerAll();
|
||||
setupMetrics();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
getLogger().info("Yuemi Git Plugin disabled.");
|
||||
getLogger().info("Git Craft Plugin disabled.");
|
||||
}
|
||||
|
||||
private void setupMetrics() {
|
||||
int pluginId = 26264;
|
||||
Metrics metrics = new Metrics(this, pluginId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user