Add Strafe check, improve KillAura, fix Elytra false positive, fix BadPackets false positive,

This commit is contained in:
Rammelkast committed 2020-08-03 19:50:18 +02:00
1 parent 700c0145f3
commit a6a39e352a
11 files changed
+112 -27

No files matched your search

@@ -81,6 +81,8 @@ public class MovementManager {
public int sneakingTicks;
// Ticks counter after being near a liquid
public int nearLiquidTicks;
// Time of last update
public long lastUpdate;
@SuppressWarnings("deprecation")
public void handle(Player player, Location from, Location to, Distance distance) {
@@ -177,6 +179,7 @@ public class MovementManager {
this.halfMovementHistoryCounter--;
}
this.lastUpdate = System.currentTimeMillis();
// Update "good location"
AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId()).setGoodLocation(from);
}