mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +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
@@ -154,6 +154,7 @@ public class Backend {
|
|||||||
MorePacketsCheck.EXEMPT_TIMINGS.remove(uuid);
|
MorePacketsCheck.EXEMPT_TIMINGS.remove(uuid);
|
||||||
ElytraCheck.JUMP_Y_VALUE.remove(uuid);
|
ElytraCheck.JUMP_Y_VALUE.remove(uuid);
|
||||||
KillAuraCheck.ANGLE_FLAGS.remove(uuid);
|
KillAuraCheck.ANGLE_FLAGS.remove(uuid);
|
||||||
|
KillAuraCheck.PACKETORDER_FLAGS.remove(uuid);
|
||||||
FlightCheck.MOVING_EXEMPT.remove(uuid);
|
FlightCheck.MOVING_EXEMPT.remove(uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,9 @@ import org.bukkit.util.Vector;
|
|||||||
import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
|
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.CheckResult.Result;
|
||||||
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.User;
|
||||||
import com.rammelkast.anticheatreloaded.util.Utilities;
|
import com.rammelkast.anticheatreloaded.util.Utilities;
|
||||||
|
|
||||||
@@ -40,6 +42,8 @@ public class KillAuraCheck {
|
|||||||
|
|
||||||
// Angle check
|
// Angle check
|
||||||
public static final Map<UUID, Integer> ANGLE_FLAGS = new HashMap<UUID, Integer>();
|
public static final Map<UUID, Integer> ANGLE_FLAGS = new HashMap<UUID, Integer>();
|
||||||
|
// PacketOrder check
|
||||||
|
public static final Map<UUID, Integer> PACKETORDER_FLAGS = new HashMap<UUID, Integer>();
|
||||||
private static final CheckResult PASS = new CheckResult(CheckResult.Result.PASSED);
|
private static final CheckResult PASS = new CheckResult(CheckResult.Result.PASSED);
|
||||||
|
|
||||||
public static CheckResult checkReach(Player player, Entity target) {
|
public static CheckResult checkReach(Player player, Entity target) {
|
||||||
@@ -118,6 +122,39 @@ public class KillAuraCheck {
|
|||||||
return PASS;
|
return PASS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static CheckResult checkPacketOrder(Player player, Entity entity) {
|
||||||
|
UUID uuid = player.getUniqueId();
|
||||||
|
User user = AntiCheatReloaded.getManager().getUserManager().getUser(uuid);
|
||||||
|
MovementManager movementManager = user.getMovementManager();
|
||||||
|
Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();
|
||||||
|
|
||||||
|
// Check if enabled
|
||||||
|
if (!checksConfig.isSubcheckEnabled(CheckType.KILLAURA, "packetOrder"))
|
||||||
|
return PASS;
|
||||||
|
|
||||||
|
if (user.isLagging() || (System.currentTimeMillis() - movementManager.lastTeleport) <= 100
|
||||||
|
|| AntiCheatReloaded.getPlugin().getTPS() < checksConfig.getDouble(CheckType.KILLAURA, "packetOrder", "minimumTps"))
|
||||||
|
return PASS;
|
||||||
|
|
||||||
|
long elapsed = System.currentTimeMillis() - movementManager.lastUpdate;
|
||||||
|
if (elapsed < checksConfig.getInteger(CheckType.KILLAURA, "packetOrder", "minElapsedTime")) {
|
||||||
|
if (!PACKETORDER_FLAGS.containsKey(uuid)) {
|
||||||
|
PACKETORDER_FLAGS.put(uuid, 1);
|
||||||
|
return PASS;
|
||||||
|
}
|
||||||
|
|
||||||
|
int flags = PACKETORDER_FLAGS.get(uuid);
|
||||||
|
int vlBeforeFlag = checksConfig.getInteger(CheckType.KILLAURA, "packetOrder", "vlBeforeFlag");
|
||||||
|
if (flags >= vlBeforeFlag) {
|
||||||
|
PACKETORDER_FLAGS.remove(uuid);
|
||||||
|
return new CheckResult(Result.FAILED, "suspicious packet order (elapsed=" + elapsed + ")");
|
||||||
|
}
|
||||||
|
|
||||||
|
PACKETORDER_FLAGS.put(uuid, flags + 1);
|
||||||
|
}
|
||||||
|
return PASS;
|
||||||
|
}
|
||||||
|
|
||||||
public static double calculateYawDifference(Location from, Location to) {
|
public static double calculateYawDifference(Location from, Location to) {
|
||||||
Location clonedFrom = from.clone();
|
Location clonedFrom = from.clone();
|
||||||
Vector startVector = clonedFrom.toVector();
|
Vector startVector = clonedFrom.toVector();
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ import org.bukkit.potion.PotionEffectType;
|
|||||||
import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
|
import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
|
||||||
import com.rammelkast.anticheatreloaded.check.CheckResult;
|
import com.rammelkast.anticheatreloaded.check.CheckResult;
|
||||||
import com.rammelkast.anticheatreloaded.util.Distance;
|
import com.rammelkast.anticheatreloaded.util.Distance;
|
||||||
|
import com.rammelkast.anticheatreloaded.util.Utilities;
|
||||||
import com.rammelkast.anticheatreloaded.util.VersionUtil;
|
import com.rammelkast.anticheatreloaded.util.VersionUtil;
|
||||||
|
|
||||||
public class ElytraCheck {
|
public class ElytraCheck {
|
||||||
@@ -38,10 +39,9 @@ public class ElytraCheck {
|
|||||||
private static final CheckResult PASS = new CheckResult(CheckResult.Result.PASSED);
|
private static final CheckResult PASS = new CheckResult(CheckResult.Result.PASSED);
|
||||||
|
|
||||||
public static CheckResult runCheck(Player player, Distance distance) {
|
public static CheckResult runCheck(Player player, Distance distance) {
|
||||||
// No elytra in server version
|
// No elytra in server version or not relevant
|
||||||
if (VersionUtil.isBountifulUpdate()) {
|
if (VersionUtil.isBountifulUpdate() || Utilities.isNearWater(player))
|
||||||
return PASS;
|
return PASS;
|
||||||
}
|
|
||||||
|
|
||||||
UUID uuid = player.getUniqueId();
|
UUID uuid = player.getUniqueId();
|
||||||
if (distance.getYDifference() > AntiCheatReloaded.getManager().getBackend().getMagic().TELEPORT_MIN()) {
|
if (distance.getYDifference() > AntiCheatReloaded.getManager().getBackend().getMagic().TELEPORT_MIN()) {
|
||||||
|
|||||||
@@ -62,8 +62,7 @@ public class FlightCheck {
|
|||||||
Backend backend = AntiCheatReloaded.getManager().getBackend();
|
Backend backend = AntiCheatReloaded.getManager().getBackend();
|
||||||
Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();
|
Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();
|
||||||
|
|
||||||
if (movementManager.nearLiquidTicks > 0 || movementManager.halfMovement
|
if (movementManager.nearLiquidTicks > 0 || movementManager.halfMovement || Utilities.isNearClimbable(player))
|
||||||
|| Utilities.isNearClimbable(player))
|
|
||||||
return PASS;
|
return PASS;
|
||||||
|
|
||||||
int minAirTicks = 13;
|
int minAirTicks = 13;
|
||||||
@@ -76,7 +75,7 @@ public class FlightCheck {
|
|||||||
|
|
||||||
// Start AirFlight
|
// Start AirFlight
|
||||||
if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "airFlight") && movementManager.airTicks > minAirTicks
|
if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "airFlight") && movementManager.airTicks > minAirTicks
|
||||||
&& !backend.justVelocity(player)) {
|
&& !backend.justVelocity(player) && movementManager.elytraEffectTicks <= 25) {
|
||||||
// Config default base is 1200ms
|
// Config default base is 1200ms
|
||||||
// Ping clamped to max. 1000 to prevent spoofing for an advantage
|
// Ping clamped to max. 1000 to prevent spoofing for an advantage
|
||||||
int blockPlaceAccountingTime = (int) (checksConfig.getInteger(CheckType.FLIGHT, "airFlight",
|
int blockPlaceAccountingTime = (int) (checksConfig.getInteger(CheckType.FLIGHT, "airFlight",
|
||||||
@@ -144,8 +143,7 @@ public class FlightCheck {
|
|||||||
if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "groundFlight") && movementManager.onGround
|
if (checksConfig.isSubcheckEnabled(CheckType.FLIGHT, "groundFlight") && movementManager.onGround
|
||||||
&& Utilities.cantStandAt(distance.getTo().getBlock().getRelative(BlockFace.DOWN))
|
&& Utilities.cantStandAt(distance.getTo().getBlock().getRelative(BlockFace.DOWN))
|
||||||
&& Utilities.cantStandAt(distance.getFrom().getBlock().getRelative(BlockFace.DOWN))
|
&& Utilities.cantStandAt(distance.getFrom().getBlock().getRelative(BlockFace.DOWN))
|
||||||
&& Utilities.cantStandAt(distance.getTo().getBlock())
|
&& Utilities.cantStandAt(distance.getTo().getBlock()) && movementManager.groundTicks > 2) {
|
||||||
&& movementManager.groundTicks > 2) {
|
|
||||||
return new CheckResult(CheckResult.Result.FAILED,
|
return new CheckResult(CheckResult.Result.FAILED,
|
||||||
"faked ground to fly (mY=" + movementManager.motionY + ", gt=" + movementManager.groundTicks + ")");
|
"faked ground to fly (mY=" + movementManager.motionY + ", gt=" + movementManager.groundTicks + ")");
|
||||||
}
|
}
|
||||||
@@ -156,7 +154,7 @@ public class FlightCheck {
|
|||||||
&& movementManager.motionY < 0 && !backend.justVelocity(player)
|
&& movementManager.motionY < 0 && !backend.justVelocity(player)
|
||||||
&& (System.currentTimeMillis() - movementManager.lastTeleport >= checksConfig
|
&& (System.currentTimeMillis() - movementManager.lastTeleport >= checksConfig
|
||||||
.getInteger(CheckType.FLIGHT, "gravity", "accountForTeleports"))
|
.getInteger(CheckType.FLIGHT, "gravity", "accountForTeleports"))
|
||||||
&& !Utilities.isInWeb(player)) {
|
&& !Utilities.isInWeb(player) && movementManager.elytraEffectTicks <= 25) {
|
||||||
double gravitatedY = (movementManager.lastMotionY - 0.08) * GRAVITY_FRICTION;
|
double gravitatedY = (movementManager.lastMotionY - 0.08) * GRAVITY_FRICTION;
|
||||||
double offset = Math.abs(gravitatedY - movementManager.motionY);
|
double offset = Math.abs(gravitatedY - movementManager.motionY);
|
||||||
double maxOffset = checksConfig.getDouble(CheckType.FLIGHT, "gravity", "maxOffset");
|
double maxOffset = checksConfig.getDouble(CheckType.FLIGHT, "gravity", "maxOffset");
|
||||||
|
|||||||
@@ -24,7 +24,9 @@ import org.bukkit.util.Vector;
|
|||||||
|
|
||||||
import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
|
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.CheckResult.Result;
|
import com.rammelkast.anticheatreloaded.check.CheckResult.Result;
|
||||||
|
import com.rammelkast.anticheatreloaded.config.providers.Checks;
|
||||||
import com.rammelkast.anticheatreloaded.util.MovementManager;
|
import com.rammelkast.anticheatreloaded.util.MovementManager;
|
||||||
import com.rammelkast.anticheatreloaded.util.Utilities;
|
import com.rammelkast.anticheatreloaded.util.Utilities;
|
||||||
|
|
||||||
@@ -38,21 +40,28 @@ public class StrafeCheck {
|
|||||||
private static final CheckResult PASS = new CheckResult(CheckResult.Result.PASSED);
|
private static final CheckResult PASS = new CheckResult(CheckResult.Result.PASSED);
|
||||||
|
|
||||||
public static CheckResult runCheck(Player player, double x, double z, Location from, Location to) {
|
public static CheckResult runCheck(Player player, double x, double z, Location from, Location to) {
|
||||||
if (!Utilities.cantStandAtExp(from) || !Utilities.cantStandAtExp(to))
|
if (!Utilities.cantStandAtExp(from) || !Utilities.cantStandAtExp(to) || Utilities.isNearWater(player)
|
||||||
|
|| Utilities.isNearClimbable(player))
|
||||||
return PASS;
|
return PASS;
|
||||||
|
|
||||||
MovementManager movementManager = AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId())
|
MovementManager movementManager = AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId())
|
||||||
.getMovementManager();
|
.getMovementManager();
|
||||||
|
Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();
|
||||||
|
|
||||||
|
if (System.currentTimeMillis() - movementManager.lastTeleport >= checksConfig.getInteger(CheckType.STRAFE,
|
||||||
|
"accountForTeleports") || movementManager.elytraEffectTicks >= 20)
|
||||||
|
return PASS;
|
||||||
|
|
||||||
Vector oldAcceleration = new Vector(movementManager.lastDistanceX, 0, movementManager.lastDistanceZ);
|
Vector oldAcceleration = new Vector(movementManager.lastDistanceX, 0, movementManager.lastDistanceZ);
|
||||||
Vector newAcceleration = new Vector(x, 0, z);
|
Vector newAcceleration = new Vector(x, 0, z);
|
||||||
|
|
||||||
// TODO fix false with bouncing off walls
|
|
||||||
float angle = newAcceleration.angle(oldAcceleration);
|
float angle = newAcceleration.angle(oldAcceleration);
|
||||||
double distance = newAcceleration.lengthSquared();
|
double distance = newAcceleration.lengthSquared();
|
||||||
if (angle > 0.25 && distance > 0.025)
|
if (angle > checksConfig
|
||||||
|
.getDouble(CheckType.STRAFE, "maxAngleChange") && distance > checksConfig
|
||||||
|
.getDouble(CheckType.STRAFE, "minActivationDistance") && Utilities.cantStandFar(to.getBlock()))
|
||||||
return new CheckResult(Result.FAILED, "switched angle in air (angle=" + angle + ", dist=" + distance + ")");
|
return new CheckResult(Result.FAILED, "switched angle in air (angle=" + angle + ", dist=" + distance + ")");
|
||||||
return PASS;
|
return PASS;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -32,6 +32,7 @@ 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.event.EventListener;
|
import com.rammelkast.anticheatreloaded.event.EventListener;
|
||||||
|
import com.rammelkast.anticheatreloaded.util.MovementManager;
|
||||||
import com.rammelkast.anticheatreloaded.util.User;
|
import com.rammelkast.anticheatreloaded.util.User;
|
||||||
|
|
||||||
public class BadPacketsCheck {
|
public class BadPacketsCheck {
|
||||||
@@ -39,9 +40,10 @@ public class BadPacketsCheck {
|
|||||||
public static void runCheck(Player player, PacketEvent event) {
|
public static void runCheck(Player player, PacketEvent event) {
|
||||||
Backend backend = AntiCheatReloaded.getManager().getBackend();
|
Backend backend = AntiCheatReloaded.getManager().getBackend();
|
||||||
// Confirm if we should even check for BadPackets
|
// Confirm if we should even check for BadPackets
|
||||||
if (!AntiCheatReloaded.getManager().getCheckManager().willCheck(player, CheckType.BADPACKETS) || backend.isMovingExempt(player)) {
|
if (!AntiCheatReloaded.getManager().getCheckManager().willCheck(player, CheckType.BADPACKETS)
|
||||||
|
|| backend.isMovingExempt(player) || player.isDead())
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
User user = AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId());
|
User user = AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId());
|
||||||
PacketContainer packet = event.getPacket();
|
PacketContainer packet = event.getPacket();
|
||||||
float pitch = packet.getFloat().read(1);
|
float pitch = packet.getFloat().read(1);
|
||||||
@@ -50,13 +52,15 @@ public class BadPacketsCheck {
|
|||||||
flag(player, event, "had an illegal pitch");
|
flag(player, event, "had an illegal pitch");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();
|
Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();
|
||||||
double tps = AntiCheatReloaded.getPlugin().getTPS();
|
double tps = AntiCheatReloaded.getPlugin().getTPS();
|
||||||
if (user.isLagging() || tps < checksConfig.getDouble(CheckType.MOREPACKETS, "minimumTps")) {
|
MovementManager movementManager = AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId())
|
||||||
|
.getMovementManager();
|
||||||
|
if (user.isLagging() || tps < checksConfig.getDouble(CheckType.MOREPACKETS, "minimumTps")
|
||||||
|
|| (System.currentTimeMillis() - movementManager.lastTeleport <= 100))
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
double x = packet.getDoubles().read(0);
|
double x = packet.getDoubles().read(0);
|
||||||
double y = packet.getDoubles().read(1);
|
double y = packet.getDoubles().read(1);
|
||||||
double z = packet.getDoubles().read(2);
|
double z = packet.getDoubles().read(2);
|
||||||
@@ -68,12 +72,13 @@ public class BadPacketsCheck {
|
|||||||
double maxDistance = checksConfig.getDouble(CheckType.BADPACKETS, "maxDistance");
|
double maxDistance = checksConfig.getDouble(CheckType.BADPACKETS, "maxDistance");
|
||||||
boolean hasNewLocation = packet.getBooleans().read(0);
|
boolean hasNewLocation = packet.getBooleans().read(0);
|
||||||
if (distance > maxDistance) {
|
if (distance > maxDistance) {
|
||||||
flag(player, event, "moved too far between packets (distance=" + new BigDecimal(distance).setScale(1, RoundingMode.HALF_UP) + ", max=" + maxDistance + ")");
|
flag(player, event, "moved too far between packets (distance="
|
||||||
|
+ new BigDecimal(distance).setScale(1, RoundingMode.HALF_UP) + ", max=" + maxDistance + ")");
|
||||||
return;
|
return;
|
||||||
} else if (distance < 1E-10 && !hasNewLocation) {
|
} else if (distance < 1E-10 && !hasNewLocation) {
|
||||||
// TODO this gives false positives when teleporting
|
// TODO this gives false positives when teleporting
|
||||||
// Only found this in 1.8.8 though
|
// Only found this in 1.8.8 though
|
||||||
//flag(player, event, "sent the same packet twice");
|
// flag(player, event, "sent the same packet twice");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ public class CommandBase {
|
|||||||
execute(cs, args);
|
execute(cs, args);
|
||||||
} else {
|
} else {
|
||||||
if (args == null) {
|
if (args == null) {
|
||||||
cs.sendMessage(GOLD + "" + ChatColor.BOLD + "AntiCheatReloaded " + GRAY + "version " + AntiCheatReloaded.getVersion());
|
cs.sendMessage(GRAY + "Running " + GOLD + "" + "AntiCheatReloaded " + GRAY + "version " + AntiCheatReloaded.getVersion());
|
||||||
} else {
|
} else {
|
||||||
cs.sendMessage(PERMISSIONS_ERROR + " (" + WHITE + permission.toString() + RED + ")");
|
cs.sendMessage(PERMISSIONS_ERROR + " (" + WHITE + permission.toString() + RED + ")");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -153,6 +153,14 @@ public class EntityListener extends EventListener {
|
|||||||
noHack = false;
|
noHack = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (getCheckManager().willCheck(player, CheckType.KILLAURA)) {
|
||||||
|
CheckResult result = KillAuraCheck.checkPacketOrder(player, event.getEntity());
|
||||||
|
if (result.failed()) {
|
||||||
|
event.setCancelled(!silentMode());
|
||||||
|
log(result.getMessage(), player, CheckType.KILLAURA);
|
||||||
|
noHack = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (noHack) {
|
if (noHack) {
|
||||||
decrease(player);
|
decrease(player);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,8 @@ public class MovementManager {
|
|||||||
public int sneakingTicks;
|
public int sneakingTicks;
|
||||||
// Ticks counter after being near a liquid
|
// Ticks counter after being near a liquid
|
||||||
public int nearLiquidTicks;
|
public int nearLiquidTicks;
|
||||||
|
// Time of last update
|
||||||
|
public long lastUpdate;
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
public void handle(Player player, Location from, Location to, Distance distance) {
|
public void handle(Player player, Location from, Location to, Distance distance) {
|
||||||
@@ -177,6 +179,7 @@ public class MovementManager {
|
|||||||
this.halfMovementHistoryCounter--;
|
this.halfMovementHistoryCounter--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.lastUpdate = System.currentTimeMillis();
|
||||||
// Update "good location"
|
// Update "good location"
|
||||||
AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId()).setGoodLocation(from);
|
AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId()).setGoodLocation(from);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,6 +98,18 @@ speed:
|
|||||||
# Extra compensation when moving off a ladder up a slab
|
# Extra compensation when moving off a ladder up a slab
|
||||||
climbableCompensation: 0.04
|
climbableCompensation: 0.04
|
||||||
|
|
||||||
|
# Strafe check settings
|
||||||
|
# Checks if a player switches movement angle in air
|
||||||
|
strafe:
|
||||||
|
# Should this check be enabled?
|
||||||
|
enabled: true
|
||||||
|
# How many milliseconds to account for teleports
|
||||||
|
accountForTeleports: 100
|
||||||
|
# Maximum angle change when moving in air
|
||||||
|
maxAngleChange: 0.25
|
||||||
|
# Minimum movement distance for the strafe check to be active
|
||||||
|
minActivationDistance: 0.025
|
||||||
|
|
||||||
# WaterWalk check settings
|
# WaterWalk check settings
|
||||||
# Checks if a player is walking on water
|
# Checks if a player is walking on water
|
||||||
waterwalk:
|
waterwalk:
|
||||||
@@ -170,6 +182,18 @@ killaura:
|
|||||||
# 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
|
||||||
|
# Debugs as 'suspicious packet order'
|
||||||
|
packetOrder:
|
||||||
|
# Should this part of the check be enabled?
|
||||||
|
enabled: true
|
||||||
|
# Minimum server TPS needed for BadPackets to be active
|
||||||
|
minimumTps: 17.5
|
||||||
|
# Minimum elapsed time in milliseconds between a movement packet and a combat packet
|
||||||
|
minElapsedTime: 5
|
||||||
|
# Amount of suspicious combat packet situations before flagging
|
||||||
|
vlBeforeFlag: 3
|
||||||
|
|
||||||
# Aimbot check settings
|
# Aimbot check settings
|
||||||
# Checks if the player is sending aimbot-like movements
|
# Checks if the player is sending aimbot-like movements
|
||||||
aimbot:
|
aimbot:
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ ALERT:
|
|||||||
WARNING:
|
WARNING:
|
||||||
- '&6&lACR &8>&7 You have been flagged for using cheats.'
|
- '&6&lACR &8>&7 You have been flagged for using cheats.'
|
||||||
- '&6&lACR &8>&7 If you continue to cheat, action will be taken.'
|
- '&6&lACR &8>&7 If you continue to cheat, action will be taken.'
|
||||||
BAN_REASON: '&6&lACR &8> &7Banned by AntiCheatReloaded'
|
BAN_REASON: '&6&lACR &8> &7Banned for unfair advantage'
|
||||||
BAN_BROADCAST: '&6&lACR &8> &7%player% was banned for cheating'
|
BAN_BROADCAST: '&6&lACR &8> &7%player% was banned for cheating'
|
||||||
KICK_REASON: '&6&lACR &8> &7Kicked for cheating'
|
KICK_REASON: '&6&lACR &8> &7Kicked for unfair advantage'
|
||||||
KICK_BROADCAST: '&6&lACR &8> &7%player% was kicked for cheating'
|
KICK_BROADCAST: '&6&lACR &8> &7%player% was kicked for cheating'
|
||||||
SPAM_WARNING: '&cStop spamming the server or you will be kicked!'
|
SPAM_WARNING: '&cStop spamming the server or you will be kicked!'
|
||||||
SPAM_KICK_REASON: '&cKicked for spamming'
|
SPAM_KICK_REASON: '&cKicked for spamming'
|
||||||
|
|||||||
Reference in new issue
Block a user