mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +00:00
Fix #178
This commit is contained in:
1 parent
f123e397b6
commit
6aaaf883e5
2 files changed
+14
-1
No files matched your search
@@ -4,7 +4,7 @@ AntiCheatReloaded helps server admins combat the use of hacked clients and spamb
|
|||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
AntiCheatReloaded requires you to have ProtocolLib. You can download it [here](https://www.spigotmc.org/resources/protocollib.1997/).
|
AntiCheatReloaded **requires** you to have ProtocolLib. You can download it [here](https://www.spigotmc.org/resources/protocollib.1997/).
|
||||||
Simply drag and drop the AntiCheatReloaded and ProtocolLib jars in your plugin folder. You can now use AntiCheatReloaded, but be sure to have a look at the configuration files, which allow you to change every aspect of the plugin.
|
Simply drag and drop the AntiCheatReloaded and ProtocolLib jars in your plugin folder. You can now use AntiCheatReloaded, but be sure to have a look at the configuration files, which allow you to change every aspect of the plugin.
|
||||||
|
|
||||||
Bug Reporting
|
Bug Reporting
|
||||||
|
|||||||
@@ -79,6 +79,19 @@ public final class WaterWalkCheck {
|
|||||||
+ Utilities.roundDouble(movementManager.distanceXZ, 5) + ", absMotionY="
|
+ Utilities.roundDouble(movementManager.distanceXZ, 5) + ", absMotionY="
|
||||||
+ Utilities.roundDouble(Math.abs(movementManager.lastMotionY - movementManager.motionY), 5) + ")");
|
+ Utilities.roundDouble(Math.abs(movementManager.lastMotionY - movementManager.motionY), 5) + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (checksConfig.isSubcheckEnabled(CheckType.WATER_WALK, "lunge") && Utilities.isSurroundedByWater(player)
|
||||||
|
&& movementManager.distanceXZ > 0.16 && movementManager.motionY > 0.0
|
||||||
|
&& movementManager.lastMotionY < 0.0
|
||||||
|
&& (Math.abs(movementManager.motionY) < 0.017 && Math.abs(movementManager.lastMotionY) < 0.02)
|
||||||
|
&& Math.abs(movementManager.lastMotionY - 0.004) < 0.021
|
||||||
|
&& user.getVelocityTracker().getHorizontal() < 0.04
|
||||||
|
&& !Utilities.couldBeOnBoat(player, 0.3, false)) {
|
||||||
|
return new CheckResult(Result.FAILED, "Lunge", "tried to lunge in water (xz="
|
||||||
|
+ Utilities.roundDouble(movementManager.distanceXZ, 5) + ", motionY="
|
||||||
|
+ Utilities.roundDouble(movementManager.motionY, 5) + ", lastMotionY="
|
||||||
|
+ Utilities.roundDouble(movementManager.lastMotionY, 5) + ")");
|
||||||
|
}
|
||||||
return PASS;
|
return PASS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user