mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
This commit is contained in:
1 parent
25bfa6449d
commit
6db2d521ae
2 files changed
+7
-3
No files matched your search
@@ -160,7 +160,7 @@ public class Backend
|
||||
|
||||
public boolean checkSpider(Player player,double y)
|
||||
{
|
||||
if(y <= LADDER_Y_MAX && y >= LADDER_Y_MIN && player.getLocation().getBlock().getType() != Material.VINE && player.getLocation().getBlock().getType() != Material.LADDER)
|
||||
if(y <= LADDER_Y_MAX && y >= LADDER_Y_MIN && !Utilities.isOnLadder(player))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -354,7 +354,7 @@ public class Backend
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(!isMovingExempt(player))
|
||||
if(!isMovingExempt(player) && !Utilities.isOnLadder(player))
|
||||
{
|
||||
double y1 = player.getLocation().getY();
|
||||
String name = player.getName();
|
||||
@@ -480,7 +480,7 @@ public class Backend
|
||||
|
||||
public boolean checkAscension(Player player, double y1, double y2)
|
||||
{
|
||||
if(!isMovingExempt(player))
|
||||
if(!isMovingExempt(player) && !Utilities.isSubmersed(player) && !Utilities.isOnLadder(player))
|
||||
{
|
||||
String name = player.getName();
|
||||
if(y1 < y2)
|
||||
|
||||
@@ -108,6 +108,10 @@ public final class Utilities
|
||||
{
|
||||
return player.getLocation().getBlock().isLiquid() && player.getLocation().getBlock().getRelative(BlockFace.UP).isLiquid();
|
||||
}
|
||||
public static boolean isOnLadder(Player player)
|
||||
{
|
||||
return player.getLocation().getBlock().getType() == Material.VINE || player.getLocation().getBlock().getType() == Material.LADDER;
|
||||
}
|
||||
public static boolean isInt(String string)
|
||||
{
|
||||
boolean x = false;
|
||||
|
||||
Reference in new issue
Block a user