Compare commits

...
2 Commits
Author SHA1 Message Date
Rammelkast 0c91ec7ba4 Prepare for release 2020-10-19 18:31:21 +02:00
Rammelkast abff433510 Fix Speed bypass 2020-10-19 16:55:43 +02:00
2 changed files with 6 additions and 5 deletions

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.rammelkast.anticheatreloaded</groupId> <groupId>com.rammelkast.anticheatreloaded</groupId>
<artifactId>AntiCheatReloaded</artifactId> <artifactId>AntiCheatReloaded</artifactId>
<version>1.9.4-PRE</version> <version>1.9.4</version>
<name>AntiCheatReloaded</name> <name>AntiCheatReloaded</name>
<url>https://www.spigotmc.org/resources/anticheatreloaded.23799/</url> <url>https://www.spigotmc.org/resources/anticheatreloaded.23799/</url>
<properties> <properties>
@@ -115,7 +115,7 @@ public class SpeedCheck {
if (VersionUtil.isSlowFalling(player)) if (VersionUtil.isSlowFalling(player))
predict *= 1.25D; predict *= 1.25D;
// Prevent NoSlow // Prevent NoSlow
if (movementManager.blockingTicks > 2 && movementManager.airTicks > 2) if (movementManager.blockingTicks > 3 && movementManager.airTicks > 2)
predict *= 0.8D; predict *= 0.8D;
if (movementManager.blockingTicks > 10 && movementManager.airTicks > 2) if (movementManager.blockingTicks > 10 && movementManager.airTicks > 2)
predict *= 0.5D; predict *= 0.5D;
@@ -168,10 +168,11 @@ public class SpeedCheck {
// This happens naturally // This happens naturally
if (movementManager.airTicksBeforeGrounded == movementManager.groundTicks) { if (movementManager.airTicksBeforeGrounded == movementManager.groundTicks) {
double minimumDistXZ = checksConfig.getDouble(CheckType.SPEED, "jumpBehaviour", "minimumDistXZ"); // Default double minimumDistXZ = checksConfig.getDouble(CheckType.SPEED, "jumpBehaviour", "minimumDistXZ"); // Default
// 0.42
if (distanceXZ >= minimumDistXZ) { if (distanceXZ >= minimumDistXZ || movementManager.lastDistanceXZ >= minimumDistXZ) {
return new CheckResult(CheckResult.Result.FAILED, "JumpBehaviour", return new CheckResult(CheckResult.Result.FAILED, "JumpBehaviour",
"had unexpected jumping behaviour"); "had unexpected jumping behaviour (dXZ=" + Utilities.roundDouble(distanceXZ, 4) + ", lXZ="
+ Utilities.roundDouble(movementManager.lastDistanceXZ, 4) + ")");
} }
} }
} }