mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-04 06:28:52 +00:00
Exempt players who have been teleported or just joined from being caught as sprinting
This commit is contained in:
1 parent
ef9c5c1455
commit
1f6e4175aa
1 file changed
+1
-1
@@ -382,7 +382,7 @@ public class Backend
|
|||||||
|
|
||||||
public boolean checkSprintStill(Player player, Location from, Location to)
|
public boolean checkSprintStill(Player player, Location from, Location to)
|
||||||
{
|
{
|
||||||
return player.isSprinting() && from.getX() == to.getX() && from.getZ() == to.getZ();
|
return !isMovingExempt(player) && player.isSprinting() && from.getX() == to.getX() && from.getZ() == to.getZ();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean checkWaterWalk(Player player, double x, double y, double z)
|
public boolean checkWaterWalk(Player player, double x, double y, double z)
|
||||||
|
|||||||
Reference in new issue
Block a user