mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Nitpicky stuff
This commit is contained in:
1 parent
d12fb048df
commit
d5d705fbe4
10 files changed
+401
-266
No files matched your search
@@ -306,8 +306,6 @@ public class Backend {
|
||||
} else if (player.isSprinting()) {
|
||||
reason = "while sprinting ";
|
||||
max = magic.XZ_SPEED_MAX_SPRINT;
|
||||
} else {
|
||||
max = magic.XZ_SPEED_MAX;
|
||||
}
|
||||
if (x > max || z > max) {
|
||||
int num = this.increment(player, speedViolation, magic.SPEED_MAX);
|
||||
@@ -431,7 +429,7 @@ public class Backend {
|
||||
}
|
||||
|
||||
public CheckResult checkYAxis(Player player, Distance distance) {
|
||||
if (distance.getYDifference() > 400 || distance.getYDifference() < 0) {
|
||||
if (distance.getYDifference() > magic.TELEPORT_MIN || distance.getYDifference() < 0) {
|
||||
return PASS;
|
||||
}
|
||||
if (!isMovingExempt(player) && !Utilities.isClimbableBlock(player.getLocation().getBlock()) && !Utilities.isClimbableBlock(player.getLocation().add(0, -1, 0).getBlock()) && !player.isInsideVehicle() && !Utilities.isInWater(player)) {
|
||||
@@ -542,7 +540,7 @@ public class Backend {
|
||||
}
|
||||
|
||||
public CheckResult checkFlight(Player player, Distance distance) {
|
||||
if (distance.getYDifference() > 400) {
|
||||
if (distance.getYDifference() > magic.TELEPORT_MIN) {
|
||||
// This was a teleport, so we don't care about it.
|
||||
return PASS;
|
||||
}
|
||||
@@ -926,10 +924,6 @@ public class Backend {
|
||||
return justAnimated(player);
|
||||
}
|
||||
|
||||
public boolean justAnimated(Player player, Entity e) {
|
||||
return justAnimated(player);
|
||||
}
|
||||
|
||||
private boolean justAnimated(Player player) {
|
||||
String name = player.getName();
|
||||
if (animated.containsKey(name)) {
|
||||
|
||||
Reference in new issue
Block a user