mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fix FastLadder false with elytra, fix speed & flight false positive with trident, fix #122 and fix #119, fix illegalinteract false positive with torches
This commit is contained in:
1 parent
9473781a26
commit
646e906ada
9 files changed
+83
-23
No files matched your search
@@ -231,8 +231,11 @@ public class Backend {
|
||||
if (player.getGameMode() != GameMode.CREATIVE && !player.isInsideVehicle() && !player.isSleeping()
|
||||
&& !isMovingExempt(player) && !justPlaced(player) && !Utilities.isNearWater(player)
|
||||
&& !Utilities.isInWeb(player) && !player.getLocation().getBlock().getType().name().endsWith("TRAPDOOR")
|
||||
&& !VersionUtil.isSlowFalling(player) && !Utilities
|
||||
.isNearShulkerBox(player.getLocation().getBlock().getRelative(BlockFace.DOWN).getLocation()) && !Utilities.isNearClimbable(player)) {
|
||||
&& !VersionUtil.isSlowFalling(player)
|
||||
&& !Utilities
|
||||
.isNearShulkerBox(player.getLocation().getBlock().getRelative(BlockFace.DOWN).getLocation())
|
||||
&& !Utilities.isNearClimbable(player)
|
||||
&& !Utilities.isNearWater(player.getLocation().clone().subtract(0, 1.5, 0))) {
|
||||
if (player.getFallDistance() == 0) {
|
||||
if (nofallViolation.get(uuid) == null) {
|
||||
nofallViolation.put(uuid, 1);
|
||||
@@ -244,8 +247,8 @@ public class Backend {
|
||||
int vlBeforeFlag = checksConfig.getInteger(CheckType.NOFALL, "vlBeforeFlag");
|
||||
if (i >= vlBeforeFlag) {
|
||||
nofallViolation.put(player.getUniqueId(), 1);
|
||||
return new CheckResult(CheckResult.Result.FAILED, "tried to avoid fall damage (fall distance = 0 "
|
||||
+ i + " times in a row, max=" + vlBeforeFlag + ")");
|
||||
return new CheckResult(CheckResult.Result.FAILED,
|
||||
"tried to avoid fall damage (" + i + " times in a row, max=" + vlBeforeFlag + ")");
|
||||
} else {
|
||||
return PASS;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user