Add mStats
All checks were successful
/ deploy (push) Successful in 1m21s

This commit is contained in:
Minecon724 2024-12-08 13:31:06 +01:00
parent 84aa625eae
commit 7703df3976
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
3 changed files with 13 additions and 2 deletions

View file

@ -149,6 +149,12 @@
<version>2.5.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>eu.m724</groupId>
<artifactId>mstats-spigot</artifactId>
<version>0.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations</artifactId>

View file

@ -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));
}

View file

@ -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