mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
Quick fix for alt-freeze exploit, more soon.
This commit is contained in:
1 parent
c76b462199
commit
32a762298f
2 files changed
+27
-3
No files matched your search
@@ -292,7 +292,11 @@ public class PlayerListener extends EventListener
|
||||
Distance distance = new Distance(from, to);
|
||||
double y = distance.getYDifference();
|
||||
backend.logAscension(player, from.getY(), to.getY());
|
||||
|
||||
if (checkManager.willCheck(player, CheckType.SPEED) && backend.checkFreeze(player, from.getY(), to.getY()))
|
||||
{
|
||||
player.kickPlayer("Freezing client");
|
||||
log("tried to freeze in mid-air.", player, CheckType.SPEED);
|
||||
}
|
||||
if (checkManager.willCheck(player, CheckType.SPRINT))
|
||||
{
|
||||
if (backend.checkSprintStill(player, from, to))
|
||||
|
||||
Reference in new issue
Block a user