diff --git a/pom.xml b/pom.xml index 3343c5a..772086f 100644 --- a/pom.xml +++ b/pom.xml @@ -149,6 +149,12 @@ 2.5.0 provided + + eu.m724 + mstats-spigot + 0.1.0 + provided + org.jetbrains annotations diff --git a/src/main/java/eu/m724/tweaks/TweaksPlugin.java b/src/main/java/eu/m724/tweaks/TweaksPlugin.java index 36bab87..19add2f 100644 --- a/src/main/java/eu/m724/tweaks/TweaksPlugin.java +++ b/src/main/java/eu/m724/tweaks/TweaksPlugin.java @@ -6,6 +6,7 @@ package eu.m724.tweaks; +import eu.m724.mstats.MStatsPlugin; import eu.m724.tweaks.auth.AuthManager; import eu.m724.tweaks.chat.ChatCommands; import eu.m724.tweaks.chat.ChatManager; @@ -21,13 +22,12 @@ import eu.m724.tweaks.sleep.SleepManager; import eu.m724.tweaks.updater.UpdaterCommands; import eu.m724.tweaks.updater.UpdaterManager; import eu.m724.tweaks.worldborder.WorldBorderManager; -import org.bukkit.plugin.java.JavaPlugin; import java.io.IOException; import java.util.Locale; import java.util.Objects; -public class TweaksPlugin extends JavaPlugin { +public class TweaksPlugin extends MStatsPlugin { @Override public void onEnable() { long start = System.nanoTime(); @@ -99,6 +99,8 @@ public class TweaksPlugin extends JavaPlugin { new AuthManager(this).init(getCommand("tauth")); } + mStats(1); + getLogger().info("Took %.3f milliseconds".formatted((System.nanoTime() - start) / 1000000.0)); } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 57f4300..ddaf0f4 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -8,6 +8,9 @@ api-version: 1.21.1 depend: [ProtocolLib] #softdepend: [voicechat] +libraries: + - eu.m724:mstats-spigot:0.1.0 + commands: chat: description: Chatroom user commands