Added GhostHand and Unicode chat check and fixed broken fly check.

Furthermore:
+ Updated and documented magic.yml
+ Added support for missing CAVE_AIR material
+ Average ping for blink check can now be configured
+ Removed /acr update from help command
+ Added UpdateManager.java to be used in future update messages
+ Better MainHand/OffHand support

I've been busy :)
This commit is contained in:
Rammelkast committed 2020-03-24 20:15:31 +01:00
1 parent acea36929b
commit fec1286c8d
22 files changed
+596 -193

No files matched your search

@@ -158,15 +158,6 @@ public class AntiCheatReloaded extends JavaPlugin {
return kicked;
}
}));
metrics.addCustomChart(new Metrics.SingleLineChart("glide_violations", new Callable<Integer>() {
@Override
public Integer call() throws Exception {
int violations = glideViolations;
// Reset so we don't keep sending the same value
glideViolations = 0;
return violations;
}
}));
metrics.addCustomChart(new Metrics.SimplePie("protocollib_version", new Callable<String>() {
@Override
public String call() throws Exception {
@@ -300,19 +291,11 @@ public class AntiCheatReloaded extends JavaPlugin {
* Amount of players kicked since start
*/
private int playersKicked = 0;
/**
* Amount of glide violations since start
*/
private int glideViolations = 0;
public void onPlayerKicked() {
this.playersKicked++;
}
public void onGlideViolation() {
this.glideViolations++;
}
public static void sendToMainThread(Runnable runnable) {
Bukkit.getServer().getScheduler().runTask(AntiCheatReloaded.getPlugin(), runnable);
}