mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Add Strafe check, improve KillAura, fix Elytra false positive, fix BadPackets false positive,
This commit is contained in:
1 parent
700c0145f3
commit
a6a39e352a
11 files changed
+112
-27
No files matched your search
@@ -30,6 +30,7 @@ import org.bukkit.potion.PotionEffectType;
|
||||
import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
|
||||
import com.rammelkast.anticheatreloaded.check.CheckResult;
|
||||
import com.rammelkast.anticheatreloaded.util.Distance;
|
||||
import com.rammelkast.anticheatreloaded.util.Utilities;
|
||||
import com.rammelkast.anticheatreloaded.util.VersionUtil;
|
||||
|
||||
public class ElytraCheck {
|
||||
@@ -38,10 +39,9 @@ public class ElytraCheck {
|
||||
private static final CheckResult PASS = new CheckResult(CheckResult.Result.PASSED);
|
||||
|
||||
public static CheckResult runCheck(Player player, Distance distance) {
|
||||
// No elytra in server version
|
||||
if (VersionUtil.isBountifulUpdate()) {
|
||||
// No elytra in server version or not relevant
|
||||
if (VersionUtil.isBountifulUpdate() || Utilities.isNearWater(player))
|
||||
return PASS;
|
||||
}
|
||||
|
||||
UUID uuid = player.getUniqueId();
|
||||
if (distance.getYDifference() > AntiCheatReloaded.getManager().getBackend().getMagic().TELEPORT_MIN()) {
|
||||
|
||||
Reference in new issue
Block a user