mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Fixed Glide false positive, added config
This commit is contained in:
1 parent
bf1d929390
commit
461f22cc55
3 files changed
+6
-1
No files matched your search
@@ -32,7 +32,7 @@ public class GlideCheck {
|
||||
YAxisCheck.lastYcoord.put(name, player.getLocation().getY());
|
||||
double currentY = player.getLocation().getY();
|
||||
double math = currentY - YAxisCheck.lastYcoord.get(name);
|
||||
if(math < 0 && !AntiCheat.getManager().getBackend().isMovingExempt(player))
|
||||
if((math < 0 && math > AntiCheat.getManager().getBackend().getMagic().GLIDE_MAX()) && !AntiCheat.getManager().getBackend().isMovingExempt(player))
|
||||
{
|
||||
if(math <= lastYDelta.get(name) && !(player.getEyeLocation().getBlock().getType() == Material.LADDER)
|
||||
&& !Utilities.isInWater(player) && !Utilities.isInWeb(player)
|
||||
|
||||
@@ -161,6 +161,10 @@ public interface Magic {
|
||||
* Number of times a player can be caught in-glide before action is taken; Type=INTEGER, Leniency=INCREASE.
|
||||
*/
|
||||
public int GLIDE_LIMIT();
|
||||
/**
|
||||
* The max fallspeed after which glide check is disabled; Type=DOUBLE
|
||||
*/
|
||||
public double GLIDE_MAX();
|
||||
/**
|
||||
* How many blocks you can travel before action is taken; Type=INTEGER, Leniency=INCREASE.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user