mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Exempt players in webs from nofall
This commit is contained in:
1 parent
8c837f0ec1
commit
08776d44db
2 files changed
+35
-31
No files matched your search
@@ -236,7 +236,7 @@ public class Backend {
|
||||
|
||||
public boolean checkNoFall(Player player, double y) {
|
||||
String name = player.getName();
|
||||
if (player.getGameMode() != GameMode.CREATIVE && !player.isInsideVehicle() && !player.isSleeping() && !isMovingExempt(player) && !justPlaced(player) && !Utilities.isInWater(player)) {
|
||||
if (player.getGameMode() != GameMode.CREATIVE && !player.isInsideVehicle() && !player.isSleeping() && !isMovingExempt(player) && !justPlaced(player) && !Utilities.isInWater(player) && !Utilities.isInWeb(player)) {
|
||||
if (player.getFallDistance() == 0) {
|
||||
if (nofallViolation.get(name) == null) {
|
||||
nofallViolation.put(name, 1);
|
||||
|
||||
Reference in new issue
Block a user