Fix #167, vastly improved aimbot check (experimental)

This commit is contained in:
Rammelkast committed 2021-10-12 14:22:34 +02:00
1 parent e2d0fbda18
commit 78ae04a2a8
12 files changed
+109 -69

No files matched your search

@@ -35,7 +35,6 @@ import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
import com.rammelkast.anticheatreloaded.check.CheckResult.Result; import com.rammelkast.anticheatreloaded.check.CheckResult.Result;
import com.rammelkast.anticheatreloaded.check.combat.KillAuraCheck; import com.rammelkast.anticheatreloaded.check.combat.KillAuraCheck;
import com.rammelkast.anticheatreloaded.check.combat.VelocityCheck; import com.rammelkast.anticheatreloaded.check.combat.VelocityCheck;
import com.rammelkast.anticheatreloaded.check.movement.AimbotCheck;
import com.rammelkast.anticheatreloaded.check.movement.ElytraCheck; import com.rammelkast.anticheatreloaded.check.movement.ElytraCheck;
import com.rammelkast.anticheatreloaded.check.movement.FlightCheck; import com.rammelkast.anticheatreloaded.check.movement.FlightCheck;
import com.rammelkast.anticheatreloaded.check.movement.NoSlowCheck; import com.rammelkast.anticheatreloaded.check.movement.NoSlowCheck;
@@ -125,7 +124,6 @@ public class Backend {
fastSneakViolations.remove(uuid); fastSneakViolations.remove(uuid);
lastSneak.remove(uuid); lastSneak.remove(uuid);
levitatingEnd.remove(uuid); levitatingEnd.remove(uuid);
AimbotCheck.LAST_DELTA_YAW.remove(uuid);
VelocityCheck.VIOLATIONS.remove(uuid); VelocityCheck.VIOLATIONS.remove(uuid);
MorePacketsCheck.LAST_PACKET_TIME.remove(uuid); MorePacketsCheck.LAST_PACKET_TIME.remove(uuid);
MorePacketsCheck.PACKET_BALANCE.remove(uuid); MorePacketsCheck.PACKET_BALANCE.remove(uuid);
@@ -18,54 +18,49 @@
*/ */
package com.rammelkast.anticheatreloaded.check.movement; package com.rammelkast.anticheatreloaded.check.movement;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.player.PlayerMoveEvent; import org.bukkit.event.entity.EntityDamageByEntityEvent;
import com.rammelkast.anticheatreloaded.AntiCheatReloaded; import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
import com.rammelkast.anticheatreloaded.check.Backend; import com.rammelkast.anticheatreloaded.check.Backend;
import com.rammelkast.anticheatreloaded.check.CheckResult; import com.rammelkast.anticheatreloaded.check.CheckResult;
import com.rammelkast.anticheatreloaded.check.CheckType; import com.rammelkast.anticheatreloaded.check.CheckType;
import com.rammelkast.anticheatreloaded.config.providers.Checks; import com.rammelkast.anticheatreloaded.config.providers.Checks;
import com.rammelkast.anticheatreloaded.util.MovementManager;
import com.rammelkast.anticheatreloaded.util.User;
import com.rammelkast.anticheatreloaded.util.Utilities;
/** /*
* TODO redo this all - useless check * In development - expect issues
*/ */
public final class AimbotCheck { public final class AimbotCheck {
public static final Map<UUID, Float> LAST_DELTA_YAW = new HashMap<UUID, Float>();
private static final CheckResult PASS = new CheckResult(CheckResult.Result.PASSED); private static final CheckResult PASS = new CheckResult(CheckResult.Result.PASSED);
public static CheckResult runCheck(final Player player, final PlayerMoveEvent event) { public static CheckResult runCheck(final Player player, final EntityDamageByEntityEvent event) {
final Backend backend = AntiCheatReloaded.getManager().getBackend(); final Backend backend = AntiCheatReloaded.getManager().getBackend();
final Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();
if (backend.isMovingExempt(player)) { if (backend.isMovingExempt(player)) {
return PASS; return PASS;
} }
final UUID uuid = player.getUniqueId(); final User user = AntiCheatReloaded.getManager().getUserManager()
final float dYaw = Math.abs(event.getTo().getYaw() - event.getFrom().getYaw()); .getUser(player.getUniqueId());
final float dPitch = Math.abs(event.getTo().getPitch() - event.getFrom().getPitch()); final MovementManager movementManager = user.getMovementManager();
// Not interesting final Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();
if (dYaw < 0.05 && dPitch < 0.05) { final float deltaPitch = movementManager.deltaPitch;
return PASS; final float deltaYaw = movementManager.deltaYaw;
} final float pitchAcceleration = Math.abs(deltaPitch - movementManager.lastDeltaPitch);
final float yawAcceleration = Math.abs(deltaYaw - movementManager.lastDeltaYaw);
final float lastDeltaYaw = LAST_DELTA_YAW.getOrDefault(uuid, -1F); if (deltaYaw > 3.0F && deltaPitch <= 10.0F && pitchAcceleration > 2.0F && yawAcceleration > 2.0F
if (lastDeltaYaw == -1F) { && deltaPitch < deltaYaw) {
LAST_DELTA_YAW.put(uuid, dYaw); final double gcd = Utilities.computeGcd(deltaPitch, movementManager.lastDeltaPitch);
return PASS; final double mod = player.getLocation().getPitch() % gcd;
} final double maxGcd = checksConfig.getDouble(CheckType.AIMBOT, "maxGcd");
LAST_DELTA_YAW.put(uuid, dYaw); final double maxMod = checksConfig.getDouble(CheckType.AIMBOT, "maxMod");
if (gcd < maxGcd || mod < maxMod) {
final float absoluteYawDifference = Math.abs(dYaw - lastDeltaYaw); return new CheckResult(CheckResult.Result.FAILED, "failed computational check (gcd=" + gcd + ", mod=" + mod + ")");
final int minYaw = checksConfig.getInteger(CheckType.AIMBOT, "minYaw"); }
final int maxYaw = checksConfig.getInteger(CheckType.AIMBOT, "maxYaw");
if (absoluteYawDifference < 1E-8 && minYaw > 30 && dYaw < maxYaw) {
return new CheckResult(CheckResult.Result.FAILED, "repeated yaw difference (dYaw=" + dYaw + ")");
} }
return PASS; return PASS;
} }
@@ -62,7 +62,6 @@ public final class ElytraCheck {
// Tident added in 1.13 // Tident added in 1.13
if (player.getInventory().getItemInMainHand().getType() == XMaterial.TRIDENT.parseMaterial()) { if (player.getInventory().getItemInMainHand().getType() == XMaterial.TRIDENT.parseMaterial()) {
if (upwardMovement) { if (upwardMovement) {
// TODO continue check here
JUMP_Y_VALUE.remove(uuid); JUMP_Y_VALUE.remove(uuid);
return PASS; return PASS;
} }
@@ -28,7 +28,6 @@ import org.bukkit.entity.Player;
import org.bukkit.potion.PotionEffectType; import org.bukkit.potion.PotionEffectType;
import com.rammelkast.anticheatreloaded.AntiCheatReloaded; import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
import com.rammelkast.anticheatreloaded.check.Backend;
import com.rammelkast.anticheatreloaded.check.CheckResult; import com.rammelkast.anticheatreloaded.check.CheckResult;
import com.rammelkast.anticheatreloaded.check.CheckType; import com.rammelkast.anticheatreloaded.check.CheckType;
import com.rammelkast.anticheatreloaded.config.providers.Checks; import com.rammelkast.anticheatreloaded.config.providers.Checks;
@@ -55,15 +54,13 @@ public final class FlightCheck {
|| VersionUtil.isFlying(player) || player.getVehicle() != null || VersionUtil.isFlying(player) || player.getVehicle() != null
|| AntiCheatReloaded.getManager().getBackend().isMovingExempt(player)) { || AntiCheatReloaded.getManager().getBackend().isMovingExempt(player)) {
// This was a teleport or user is flying/using elytra/in a vehicle, so we don't // This was a teleport or user is flying/using elytra/in a vehicle, so we don't
// care // care about it.
// about it.
return PASS; return PASS;
} }
final User user = AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId()); final User user = AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId());
final MovementManager movementManager = user.getMovementManager(); final MovementManager movementManager = user.getMovementManager();
final VelocityTracker velocityTracker = user.getVelocityTracker(); final VelocityTracker velocityTracker = user.getVelocityTracker();
final Backend backend = AntiCheatReloaded.getManager().getBackend();
final Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks(); final Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();
if (movementManager.nearLiquidTicks > 0 || movementManager.halfMovement || Utilities.isNearClimbable(player) if (movementManager.nearLiquidTicks > 0 || movementManager.halfMovement || Utilities.isNearClimbable(player)
@@ -133,8 +130,6 @@ public final class FlightCheck {
// End AirFlight // End AirFlight
// Start AirClimb // Start AirClimb
// TODO three hardcoded values here shouldn't be there, temp against false
// positive
if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "airClimb") && movementManager.lastMotionY > 0 if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "airClimb") && movementManager.lastMotionY > 0
&& movementManager.motionY > 0 && movementManager.airTicks == 2 && movementManager.motionY > 0 && movementManager.airTicks == 2
&& Math.round(movementManager.lastMotionY * 1000) != 420 && Math.round(movementManager.lastMotionY * 1000) != 420
@@ -153,7 +148,6 @@ public final class FlightCheck {
return new CheckResult(CheckResult.Result.FAILED, "AirClimb", return new CheckResult(CheckResult.Result.FAILED, "AirClimb",
"tried to climb air (mY=" + movementManager.motionY + ")"); "tried to climb air (mY=" + movementManager.motionY + ")");
// TODO hardcoded value against false again..
if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "airClimb") && movementManager.motionY > 0.42 if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "airClimb") && movementManager.motionY > 0.42
&& movementManager.airTicks > 2 && !velocityTracker.isVelocitized() && movementManager.airTicks > 2 && !velocityTracker.isVelocitized()
&& !player.hasPotionEffect(PotionEffectType.JUMP) && !player.hasPotionEffect(PotionEffectType.JUMP)
@@ -165,7 +159,6 @@ public final class FlightCheck {
"tried to climb air (mY=" + movementManager.motionY + ", at=" + movementManager.airTicks + ")"); "tried to climb air (mY=" + movementManager.motionY + ", at=" + movementManager.airTicks + ")");
} }
// TODO hardcoded value against false
if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "airClimb") && movementManager.airTicks >= minAirTicks if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "airClimb") && movementManager.airTicks >= minAirTicks
&& movementManager.lastMotionY < 0 && movementManager.motionY > 0 && movementManager.lastMotionY < 0 && movementManager.motionY > 0
&& !velocityTracker.isVelocitized() && !velocityTracker.isVelocitized()
@@ -176,6 +169,15 @@ public final class FlightCheck {
return new CheckResult(CheckResult.Result.FAILED, "AirClimb", return new CheckResult(CheckResult.Result.FAILED, "AirClimb",
"tried to climb air (mY=" + movementManager.motionY + ", at=" + movementManager.airTicks + ")"); "tried to climb air (mY=" + movementManager.motionY + ", at=" + movementManager.airTicks + ")");
} }
if (movementManager.airTicks >= minAirTicks && movementManager.motionY > 0
&& velocityTracker.getVertical() <= 0.0D && movementManager.slimeInfluenceTicks <= 0
&& movementManager.elytraEffectTicks <= 25
&& (System.currentTimeMillis() - movementManager.lastTeleport >= checksConfig
.getInteger(CheckType.FLIGHT, "airClimb", "accountForTeleports"))) {
return new CheckResult(CheckResult.Result.FAILED, "AirClimb",
"tried to climb air (mY=" + movementManager.motionY + ", at=" + movementManager.airTicks + ")");
}
// End AirClimb // End AirClimb
// Start GroundFlight // Start GroundFlight
@@ -195,8 +197,8 @@ public final class FlightCheck {
.getInteger(CheckType.FLIGHT, "gravity", "accountForTeleports")) .getInteger(CheckType.FLIGHT, "gravity", "accountForTeleports"))
&& !Utilities.isNearWeb(player) && movementManager.elytraEffectTicks <= 25 && !Utilities.isNearWeb(player) && movementManager.elytraEffectTicks <= 25
&& !VersionUtil.isSlowFalling(player)) { && !VersionUtil.isSlowFalling(player)) {
double gravitatedY = (movementManager.lastMotionY - 0.08) * GRAVITY_FRICTION; final double gravitatedY = (movementManager.lastMotionY - 0.08) * GRAVITY_FRICTION;
double offset = Math.abs(gravitatedY - movementManager.motionY); final double offset = Math.abs(gravitatedY - movementManager.motionY);
double maxOffset = checksConfig.getDouble(CheckType.FLIGHT, "gravity", "maxOffset"); double maxOffset = checksConfig.getDouble(CheckType.FLIGHT, "gravity", "maxOffset");
if (Utilities.isNearClimbable(distance.getFrom().clone().subtract(0, 0.51D, 0)) if (Utilities.isNearClimbable(distance.getFrom().clone().subtract(0, 0.51D, 0))
|| Utilities.isNearClimbable(distance.getFrom()) || Utilities.isNearWater(player) || Utilities.isNearClimbable(distance.getFrom()) || Utilities.isNearWater(player)
@@ -214,7 +216,7 @@ public final class FlightCheck {
} }
} else { } else {
if (GRAVITY_VIOLATIONS.containsKey(player.getUniqueId())) { if (GRAVITY_VIOLATIONS.containsKey(player.getUniqueId())) {
float vl = GRAVITY_VIOLATIONS.getOrDefault(player.getUniqueId(), 0f); final float vl = GRAVITY_VIOLATIONS.getOrDefault(player.getUniqueId(), 0f);
GRAVITY_VIOLATIONS.put(player.getUniqueId(), Math.max(0, vl - 0.5f)); GRAVITY_VIOLATIONS.put(player.getUniqueId(), Math.max(0, vl - 0.5f));
} }
} }
@@ -78,18 +78,12 @@ public final class BadPacketsCheck {
maxDistance *= 1.5D; maxDistance *= 1.5D;
} }
final boolean hasNewLocation = packet.getBooleans().read(0);
if (distance > maxDistance) { if (distance > maxDistance) {
flag(player, event, flag(player, event,
"moved too far between packets (distance=" "moved too far between packets (distance="
+ new BigDecimal(distance).setScale(1, RoundingMode.HALF_UP) + ", max=" + maxDistance + new BigDecimal(distance).setScale(1, RoundingMode.HALF_UP) + ", max=" + maxDistance
+ ", at=" + movementManager.airTicks + ")"); + ", at=" + movementManager.airTicks + ")");
return; return;
} else if (distance < 1E-10 && !hasNewLocation) {
// TODO this gives false positives when teleporting
// Only found this in 1.8.8 though
// flag(player, event, "sent the same packet twice");
return;
} }
} }
@@ -38,6 +38,7 @@ import com.rammelkast.anticheatreloaded.check.CheckResult;
import com.rammelkast.anticheatreloaded.check.CheckType; import com.rammelkast.anticheatreloaded.check.CheckType;
import com.rammelkast.anticheatreloaded.check.combat.CriticalsCheck; import com.rammelkast.anticheatreloaded.check.combat.CriticalsCheck;
import com.rammelkast.anticheatreloaded.check.combat.KillAuraCheck; import com.rammelkast.anticheatreloaded.check.combat.KillAuraCheck;
import com.rammelkast.anticheatreloaded.check.movement.AimbotCheck;
import com.rammelkast.anticheatreloaded.util.VersionUtil; import com.rammelkast.anticheatreloaded.util.VersionUtil;
public class EntityListener extends EventListener { public class EntityListener extends EventListener {
@@ -107,6 +108,12 @@ public class EntityListener extends EventListener {
if (getCheckManager().willCheck((Player)e.getDamager(), CheckType.CRITICALS)) { if (getCheckManager().willCheck((Player)e.getDamager(), CheckType.CRITICALS)) {
CriticalsCheck.doDamageEvent(e, (Player)e.getDamager()); CriticalsCheck.doDamageEvent(e, (Player)e.getDamager());
} }
if (getCheckManager().willCheckQuick((Player)e.getDamager(), CheckType.AIMBOT)) {
final CheckResult result = AimbotCheck.runCheck((Player)e.getDamager(), e);
if (result.failed()) {
log(result.getMessage(), (Player)e.getDamager(), CheckType.AIMBOT, result.getSubCheck());
}
}
} }
if (event.getEntity() instanceof Player) { if (event.getEntity() instanceof Player) {
Player player = (Player) event.getEntity(); Player player = (Player) event.getEntity();
@@ -63,7 +63,6 @@ import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
import com.rammelkast.anticheatreloaded.check.CheckResult; import com.rammelkast.anticheatreloaded.check.CheckResult;
import com.rammelkast.anticheatreloaded.check.CheckType; import com.rammelkast.anticheatreloaded.check.CheckType;
import com.rammelkast.anticheatreloaded.check.combat.VelocityCheck; import com.rammelkast.anticheatreloaded.check.combat.VelocityCheck;
import com.rammelkast.anticheatreloaded.check.movement.AimbotCheck;
import com.rammelkast.anticheatreloaded.check.movement.BoatFlyCheck; import com.rammelkast.anticheatreloaded.check.movement.BoatFlyCheck;
import com.rammelkast.anticheatreloaded.check.movement.ElytraCheck; import com.rammelkast.anticheatreloaded.check.movement.ElytraCheck;
import com.rammelkast.anticheatreloaded.check.movement.FastLadderCheck; import com.rammelkast.anticheatreloaded.check.movement.FastLadderCheck;
@@ -518,12 +517,6 @@ public final class PlayerListener extends EventListener {
} }
} }
} }
if (getCheckManager().willCheckQuick(player, CheckType.AIMBOT)) {
final CheckResult result = AimbotCheck.runCheck(player, event);
if (result.failed()) {
log(result.getMessage(), player, CheckType.AIMBOT, result.getSubCheck());
}
}
if (getCheckManager().willCheckQuick(player, CheckType.VELOCITY)) { if (getCheckManager().willCheckQuick(player, CheckType.VELOCITY)) {
final CheckResult result = VelocityCheck.runCheck(player, distance); final CheckResult result = VelocityCheck.runCheck(player, distance);
if (result.failed()) { if (result.failed()) {
@@ -59,6 +59,14 @@ public final class MovementManager {
public double lastDistanceX; public double lastDistanceX;
// Previous horizontal distance on z-axis of movement // Previous horizontal distance on z-axis of movement
public double lastDistanceZ; public double lastDistanceZ;
// Delta pitch
public float deltaPitch;
// Delta yaw
public float deltaYaw;
// Previous delta pitch
public float lastDeltaPitch;
// Previous delta yaw
public float lastDeltaYaw;
// If the player touched the ground again this tick // If the player touched the ground again this tick
public boolean touchedGroundThisTick = false; public boolean touchedGroundThisTick = false;
// Last recorded distance // Last recorded distance
@@ -118,6 +126,11 @@ public final class MovementManager {
this.distanceX = x; this.distanceX = x;
this.distanceZ = z; this.distanceZ = z;
this.lastDeltaPitch = this.deltaPitch;
this.lastDeltaYaw = this.deltaYaw;
this.deltaPitch = Math.abs(to.getPitch() - from.getPitch());
this.deltaYaw = Math.abs(Utilities.computeAngleDifference(to.getYaw(), from.getYaw()));
// Account for standing on boat // Account for standing on boat
if (Utilities.couldBeOnBoat(player, 0.25, true) && !Utilities.isSubmersed(player)) { if (Utilities.couldBeOnBoat(player, 0.25, true) && !Utilities.isSubmersed(player)) {
this.onGround = true; this.onGround = true;
@@ -101,11 +101,13 @@ public class UpdateManager {
public class VersionSplit implements Comparable<VersionSplit> { public class VersionSplit implements Comparable<VersionSplit> {
private final int major, minor, build; private final int major, minor, build;
private boolean prerelease = false;
public VersionSplit(String version) throws Exception { public VersionSplit(String version) throws Exception {
if (version.endsWith("-ALPHA")) { if (version.endsWith("-ALPHA")) {
version = version.substring(0, version.length() - 6); version = version.substring(0, version.length() - 6);
} else if (version.endsWith("-PRE")) { } else if (version.endsWith("-PRE")) {
this.prerelease = true;
version = version.substring(0, version.length() - 4); version = version.substring(0, version.length() - 4);
} }
@@ -132,11 +134,15 @@ public class UpdateManager {
} }
@Override @Override
public int compareTo(VersionSplit other) { public int compareTo(final VersionSplit other) {
if (other.major == this.major) { if (other.major == this.major) {
if (other.minor == this.minor) { if (other.minor == this.minor) {
if (other.build == this.build) { if (other.build == this.build) {
return 0; if (!this.prerelease) {
return 0;
} else {
return -1;
}
} }
if (other.build > this.build) { if (other.build > this.build) {
return -1; return -1;
@@ -841,6 +841,39 @@ public final class Utilities {
return block.getType() == XMaterial.HONEY_BLOCK.parseMaterial(); return block.getType() == XMaterial.HONEY_BLOCK.parseMaterial();
} }
/**
* Computes the difference between two angles
* @param a Angle A
* @param b Angle B
* @return the difference between two angles
*/
public static float computeAngleDifference(final float a, final float b) {
float diff = Math.abs(a - b);
final float altDiff = b + 360 - a;
final float altAltDiff = a + 360 - b;
if (altDiff < diff) diff = altDiff;
if (altAltDiff < diff) diff = altAltDiff;
return diff;
}
/**
* Calculates the greatest common divider
* @param a value a
* @param b value b
* @return the greatest common divider of a and b
*/
public static double computeGcd(final double a, final double b) {
if (a < b) {
return computeGcd(b, a);
}
if (Math.abs(b) < 0.001) {
return a;
} else {
return computeGcd(b, a - Math.floor(a / b) * b);
}
}
static { static {
MinecraftVersion currentVersion = MinecraftVersion.getCurrentVersion(); MinecraftVersion currentVersion = MinecraftVersion.getCurrentVersion();
@@ -137,7 +137,7 @@ public class VersionUtil {
} }
static { static {
SUPPORTED_VERSIONS = Arrays.asList(new String[] { "v1_17_R1", "v1_16", "v1_15", "v1_14", "v1_13", "v1_12" }); SUPPORTED_VERSIONS = Arrays.asList(new String[] { "v1_17", "v1_16", "v1_15", "v1_14", "v1_13", "v1_12" });
CURRENT_VERSION = MinecraftVersion.getCurrentVersion(); CURRENT_VERSION = MinecraftVersion.getCurrentVersion();
} }
} }
+10 -10
View File
@@ -99,9 +99,9 @@ strafe:
# How many milliseconds to account for teleports # How many milliseconds to account for teleports
accountForTeleports: 300 accountForTeleports: 300
# Maximum angle change when moving in air # Maximum angle change when moving in air
maxAngleChange: 0.5 maxAngleChange: 0.58
# Minimum movement distance for the strafe check to be active # Minimum movement distance for the strafe check to be active
minActivationDistance: 0.04 minActivationDistance: 0.05
# WaterWalk check settings # WaterWalk check settings
# Checks if a player is walking on water # Checks if a player is walking on water
waterwalk: waterwalk:
@@ -174,7 +174,7 @@ killaura:
# Should this part of the check be enabled? # Should this part of the check be enabled?
enabled: true enabled: true
# Maximum difference in angle from the players view # Maximum difference in angle from the players view
maxDifference: 50 maxDifference: 60
# Amount of illegally angled hits before flagging # Amount of illegally angled hits before flagging
vlBeforeFlag: 3 vlBeforeFlag: 3
# Checks if the player has a suspicious packet order # Checks if the player has a suspicious packet order
@@ -193,10 +193,10 @@ killaura:
aimbot: aimbot:
# Should this check be enabled? # Should this check be enabled?
enabled: true enabled: true
# Minimum yaw difference when repeated # Maximum gcd value for check to consider aim illegal
minYaw: 30 maxGcd: 0.002
# Maximum yaw difference when repeated # Maximum mod value for check to consider aim illegal
maxYaw: 355 maxMod: 0.003
# Criticals check settings # Criticals check settings
# Checks if the player tries to do a crit without needed conditions # Checks if the player tries to do a crit without needed conditions
criticals: criticals:
@@ -269,11 +269,11 @@ morepackets:
# Should this check be enabled? # Should this check be enabled?
enabled: true enabled: true
# Minimum server TPS needed for MorePackets to be active # Minimum server TPS needed for MorePackets to be active
minimumTps: 17.5 minimumTps: 18.5
# Maximum amount of lag compensation a player can acquire (50ms = 1 tick) # Maximum amount of lag compensation a player can acquire (50ms = 1 tick)
minimumClamp: 1200 minimumClamp: 1250
# The amount of milliseconds offset between packets before flagging (50ms = 1 tick) # The amount of milliseconds offset between packets before flagging (50ms = 1 tick)
triggerBalance: 150 triggerBalance: 200
# The amount of milliseconds to compensate for a teleport (50ms = 1 tick) # The amount of milliseconds to compensate for a teleport (50ms = 1 tick)
teleportCompensation: 500 teleportCompensation: 500
# Should this check be disabled for 'lagging' players? # Should this check be disabled for 'lagging' players?