diff --git a/pom.xml b/pom.xml
index 1e24b15..d77dfa2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.rammelkast.anticheatreloaded
AntiCheatReloaded
- 1.6.1-ALPHA
+ 1.6.2-ALPHA
AntiCheatReloaded
https://rammelkast.com
diff --git a/src/main/java/com/rammelkast/anticheatreloaded/AntiCheat.java b/src/main/java/com/rammelkast/anticheatreloaded/AntiCheat.java
index b84b5e2..57f402b 100644
--- a/src/main/java/com/rammelkast/anticheatreloaded/AntiCheat.java
+++ b/src/main/java/com/rammelkast/anticheatreloaded/AntiCheat.java
@@ -81,6 +81,9 @@ public class AntiCheat extends JavaPlugin {
KillAuraCheck.listenPackets();
BlinkCheck.startTimer();
BlinkCheck.listenPackets();
+ } else {
+ getLogger().severe("Shutting down, ProtocolLib not found!");
+ Bukkit.getPluginManager().disablePlugin(this);
}
// Check if other AC's are installed
@@ -120,19 +123,34 @@ public class AntiCheat extends JavaPlugin {
metrics.addCustomChart(new Metrics.SingleLineChart("cheaters_kicked") {
@Override
public int getValue() {
- return playersKicked;
+ int kicked = playersKicked;
+ // Reset so we don't keep sending the same value
+ playersKicked = 0;
+ return kicked;
}
});
metrics.addCustomChart(new Metrics.SingleLineChart("killaura_violations") {
@Override
public int getValue() {
- return killauraViolations;
+ int violations = killauraViolations;
+ // Reset so we don't keep sending the same value
+ killauraViolations = 0;
+ return violations;
}
});
metrics.addCustomChart(new Metrics.SingleLineChart("glide_violations") {
@Override
public int getValue() {
- return glideViolations;
+ int violations = glideViolations;
+ // Reset so we don't keep sending the same value
+ glideViolations = 0;
+ return violations;
+ }
+ });
+ metrics.addCustomChart(new Metrics.SimplePie("protocollib_version") {
+ @Override
+ public String getValue() {
+ return Bukkit.getPluginManager().getPlugin("ProtocolLib").getDescription().getVersion();
}
});
} catch (Exception e) {
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 29385fe..5548d76 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -2,7 +2,7 @@ name: AntiCheatReloaded
author: Rammelkast
description: AntiCheatReloaded helps easily identify and block malicious users on your server.
main: com.rammelkast.anticheatreloaded.AntiCheat
-softdepend: [ProtocolLib]
+depend: [ProtocolLib]
startup: postworld
version: ${project.build.version}
commands: