Massive messaging and config changes.

Furthermore:
+ Added basic KillAura angle check (a start to #52)
+ Fixed sneak false positives
+ Added staff alert messaging (anticheat.system.alert permission, see #28)
+ Language file now support color coding
+ Added debug-mode for testservers
+ Insignificant pom.xml and README.md updates
This commit is contained in:
Rammelkast committed 2020-03-25 17:41:44 +01:00
1 parent fec1286c8d
commit 27ca12aec3
30 files changed
+145 -170

No files matched your search

@@ -55,7 +55,7 @@ public class BlinkCheck {
public static void listenPackets() {
AntiCheatReloaded.getProtocolManager()
.addPacketListener(new PacketAdapter(AntiCheatReloaded.getPlugin(), ListenerPriority.NORMAL,
.addPacketListener(new PacketAdapter(AntiCheatReloaded.getPlugin(), ListenerPriority.LOWEST,
new PacketType[] { PacketType.Play.Client.POSITION, PacketType.Play.Client.POSITION_LOOK }) {
@Override
public void onPacketReceiving(PacketEvent e) {
@@ -64,7 +64,7 @@ public class ElytraCheck {
if (changeY == 0.0D) {
// Seen no false positives here yet
return new CheckResult(CheckResult.Result.FAILED,
player.getName() + " had no Y-axis dropoff when gliding with Elytra");
player.getName() + " failed ElytraFly, had no Y-axis dropoff when gliding with Elytra");
}
if (!JUMP_Y_VALUE.containsKey(uuid)) {
@@ -81,7 +81,7 @@ public class ElytraCheck {
player.teleport(to);
}
return new CheckResult(CheckResult.Result.FAILED,
player.getName() + " tried to glide above jump level");
player.getName() + " failed ElytraFly, tried to glide above jump level");
}
}
return PASS;
@@ -72,7 +72,7 @@ public class FlightCheck {
if (BLOCKS_OVER_FLIGHT.get(uuid) > AntiCheatReloaded.getManager().getBackend().getMagic()
.FLIGHT_BLOCK_LIMIT() && (y1 <= y2)) {
return new CheckResult(CheckResult.Result.FAILED,
player.getName() + " flew over " + BLOCKS_OVER_FLIGHT.get(uuid) + " blocks (max="
player.getName() + " failed Flight, flew over " + BLOCKS_OVER_FLIGHT.get(uuid) + " blocks (max="
+ AntiCheatReloaded.getManager().getBackend().getMagic().FLIGHT_BLOCK_LIMIT() + ")");
}
} else {
@@ -73,7 +73,7 @@ public class GlideCheck {
player.teleport(to);
}
return new CheckResult(CheckResult.Result.FAILED,
player.getName() + " was set back for gliding (yDiff="
player.getName() + " failed Glide (yDiff="
+ new BigDecimal(yDiff).setScale(2, RoundingMode.HALF_UP) + ")");
} else {
VIOLATIONS.put(player.getUniqueId(), VIOLATIONS.get(player.getUniqueId()) + 1);