Fix #123, fix elytrafly false positive, fix flight false positive when falling, fix speed false positive with slabs, fixed strafe false positive with slabs, fixed TPS formatting issue, improved default config

This commit is contained in:
Rammelkast committed 2020-11-25 11:43:49 +01:00
1 parent 646e906ada
commit bd1db83a98
8 files changed
+46 -72

No files matched your search

+2 -1
View File
@@ -69,6 +69,7 @@
<groupId>com.comphenix.protocol</groupId> <groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId> <artifactId>ProtocolLib</artifactId>
<version>4.6.0-SNAPSHOT</version> <version>4.6.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
@@ -79,7 +80,7 @@
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot</artifactId> <artifactId>spigot</artifactId>
<version>1.16.3-R0.1-SNAPSHOT</version> <version>1.16.4-R0.1-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
</dependencies> </dependencies>
@@ -71,9 +71,11 @@ public class ElytraCheck {
} }
if (!JUMP_Y_VALUE.containsKey(uuid)) { if (!JUMP_Y_VALUE.containsKey(uuid)) {
JUMP_Y_VALUE.put(uuid, distance.toY()); // Distance + player height
JUMP_Y_VALUE.put(uuid, distance.toY() + 1.8D);
return PASS; return PASS;
} }
double lastY = JUMP_Y_VALUE.get(uuid); double lastY = JUMP_Y_VALUE.get(uuid);
if (lastY < distance.toY()) { if (lastY < distance.toY()) {
double diff = distance.toY() - lastY; double diff = distance.toY() - lastY;
@@ -104,7 +104,7 @@ public class FlightCheck {
return new CheckResult(CheckResult.Result.FAILED, "AirFlight", return new CheckResult(CheckResult.Result.FAILED, "AirFlight",
"tried to fly on the Y-axis (mY=" + movementManager.motionY + ", max=" + maxMotionY + ")"); "tried to fly on the Y-axis (mY=" + movementManager.motionY + ", max=" + maxMotionY + ")");
if (Math.abs(movementManager.motionY - movementManager.lastMotionY) < 5E-3 if (Math.abs(movementManager.motionY - movementManager.lastMotionY) < (movementManager.airTicks >= 115 ? 1E-3 : 5E-3)
&& !Utilities.couldBeOnBoat(player) && !Utilities.couldBeOnBoat(player)
&& (System.currentTimeMillis() - movementManager.lastTeleport >= checksConfig && (System.currentTimeMillis() - movementManager.lastTeleport >= checksConfig
.getInteger(CheckType.FLIGHT, "airFlight", "accountForTeleports")) .getInteger(CheckType.FLIGHT, "airFlight", "accountForTeleports"))
@@ -61,6 +61,9 @@ public class SpeedCheck {
&& movementManager.elytraEffectTicks <= 0 && !Utilities.isNearClimbable(player)) { && movementManager.elytraEffectTicks <= 0 && !Utilities.isNearClimbable(player)) {
double multiplier = 0.985D; double multiplier = 0.985D;
double predict = 0.36 * Math.pow(multiplier, movementManager.airTicks + 1); double predict = 0.36 * Math.pow(multiplier, movementManager.airTicks + 1);
// Prevents false when falling from great heights
if (movementManager.airTicks >= 115)
predict = Math.max(0.08, predict);
double limit = checksConfig.getDouble(CheckType.SPEED, "airSpeed", "baseLimit"); // Default 0.03125 double limit = checksConfig.getDouble(CheckType.SPEED, "airSpeed", "baseLimit"); // Default 0.03125
// Adjust for ice // Adjust for ice
if (movementManager.iceInfluenceTicks > 0) { if (movementManager.iceInfluenceTicks > 0) {
@@ -148,7 +151,7 @@ public class SpeedCheck {
limit += VersionUtil.getPotionLevel(player, PotionEffectType.SPEED) * 0.0225D; limit += VersionUtil.getPotionLevel(player, PotionEffectType.SPEED) * 0.0225D;
// Adjust for slabs // Adjust for slabs
if (movementManager.halfMovementHistoryCounter > 15) if (movementManager.halfMovementHistoryCounter > 15)
limit *= 2.0D; limit *= 2.05D;
// Adjust for custom walking speed // Adjust for custom walking speed
double walkSpeedMultiplier = checksConfig.getDouble(CheckType.SPEED, "airAcceleration", double walkSpeedMultiplier = checksConfig.getDouble(CheckType.SPEED, "airAcceleration",
"walkSpeedMultiplier"); // Default 1.4 "walkSpeedMultiplier"); // Default 1.4
@@ -165,7 +168,8 @@ public class SpeedCheck {
// JumpBehaviour // JumpBehaviour
// Works against YPorts and mini jumps // Works against YPorts and mini jumps
if (checksConfig.isSubcheckEnabled(CheckType.SPEED, "jumpBehaviour") && movementManager.touchedGroundThisTick if (checksConfig.isSubcheckEnabled(CheckType.SPEED, "jumpBehaviour") && movementManager.touchedGroundThisTick
&& !boxedIn && movementManager.slimeInfluenceTicks <= 10) { && !boxedIn && movementManager.slimeInfluenceTicks <= 10 && !Utilities.isNearHalfblock(movingTowards)
&& !Utilities.isNearHalfblock(movingTowards.clone().subtract(0, 0.51, 0))) {
// This happens naturally // This happens naturally
if (movementManager.airTicksBeforeGrounded == movementManager.groundTicks) { if (movementManager.airTicksBeforeGrounded == movementManager.groundTicks) {
double minimumDistXZ = checksConfig.getDouble(CheckType.SPEED, "jumpBehaviour", "minimumDistXZ"); // Default double minimumDistXZ = checksConfig.getDouble(CheckType.SPEED, "jumpBehaviour", "minimumDistXZ"); // Default
@@ -202,10 +206,11 @@ public class SpeedCheck {
limit *= 1.4D; limit *= 1.4D;
if (movementManager.hadSpeedEffect && !movementManager.hasSpeedEffect) if (movementManager.hadSpeedEffect && !movementManager.hasSpeedEffect)
limit *= 1.2D; limit *= 1.2D;
// Adjust for other effects // Other speed increasing effects (idk why, bloody Bukkt..)
if ((movementManager.hasFireResistanceEffect || movementManager.hasBadOmenEffect) if (movementManager.hasIncreasingEffect && movementManager.groundTicks > 3)
&& movementManager.groundTicks > 3) limit *= 1.12D;
limit *= 1.2D; if (movementManager.hadIncreasingEffect && !movementManager.hasIncreasingEffect)
limit *= 1.08D;
if (movementManager.iceInfluenceTicks >= 50) { if (movementManager.iceInfluenceTicks >= 50) {
// When moving off ice // When moving off ice
if (!Utilities.couldBeOnIce(movingTowards)) if (!Utilities.couldBeOnIce(movingTowards))
@@ -44,7 +44,7 @@ public class StrafeCheck {
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) || Utilities.isNearWater(player) if (!Utilities.cantStandAtExp(from) || !Utilities.cantStandAtExp(to) || Utilities.isNearWater(player)
|| Utilities.isNearClimbable(player) || VersionUtil.isFlying(player) || player.isDead() || Utilities.isNearClimbable(player) || VersionUtil.isFlying(player) || player.isDead()
|| Utilities.isHalfblock(to.getBlock().getRelative(BlockFace.DOWN))) || Utilities.isHalfblock(to.getBlock().getRelative(BlockFace.DOWN)) || Utilities.isNearHalfblock(to))
return PASS; return PASS;
MovementManager movementManager = AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId()) MovementManager movementManager = AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId())
@@ -19,8 +19,10 @@
package com.rammelkast.anticheatreloaded.event; package com.rammelkast.anticheatreloaded.event;
import java.text.DecimalFormat; import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.EnumMap; import java.util.EnumMap;
import java.util.HashMap; import java.util.HashMap;
import java.util.Locale;
import java.util.Map; import java.util.Map;
import java.util.UUID; import java.util.UUID;
@@ -47,6 +49,11 @@ public class EventListener implements Listener {
private static final Configuration CONFIG = AntiCheatReloaded.getManager().getConfiguration(); private static final Configuration CONFIG = AntiCheatReloaded.getManager().getConfiguration();
private static final DecimalFormat TPS_FORMAT = new DecimalFormat("##.##"); private static final DecimalFormat TPS_FORMAT = new DecimalFormat("##.##");
static {
// What the hell, Java..
TPS_FORMAT.setDecimalFormatSymbols(DecimalFormatSymbols.getInstance(Locale.ENGLISH));
}
public static void log(String message, Player player, CheckType type, String subcheck) { public static void log(String message, Player player, CheckType type, String subcheck) {
User user = getUserManager().getUser(player.getUniqueId()); User user = getUserManager().getUser(player.getUniqueId());
if (user == null) if (user == null)
@@ -89,14 +89,10 @@ public class MovementManager {
public boolean hasSpeedEffect = false; public boolean hasSpeedEffect = false;
// If the player had speed effect previous tick // If the player had speed effect previous tick
public boolean hadSpeedEffect = false; public boolean hadSpeedEffect = false;
// If the player has a fire resistance effect // If the player has a speed increasing effect
public boolean hasFireResistanceEffect = false; public boolean hasIncreasingEffect = false;
// If the player had fire resistance effect previous tick // If the player had a speed increasing effect previous tick
public boolean hadFireResistanceEffect = false; public boolean hadIncreasingEffect = false;
// If the player has a bad omen effect
public boolean hasBadOmenEffect = false;
// If the player had bad omen effect previous tick
public boolean hadBadOmenEffect = false;
// Time of last update // Time of last update
public long lastUpdate; public long lastUpdate;
@@ -189,11 +185,8 @@ public class MovementManager {
this.hadSpeedEffect = this.hasSpeedEffect; this.hadSpeedEffect = this.hasSpeedEffect;
this.hasSpeedEffect = player.hasPotionEffect(PotionEffectType.SPEED); this.hasSpeedEffect = player.hasPotionEffect(PotionEffectType.SPEED);
this.hadFireResistanceEffect = this.hasFireResistanceEffect; this.hadIncreasingEffect = this.hasIncreasingEffect;
this.hasFireResistanceEffect = player.hasPotionEffect(PotionEffectType.FIRE_RESISTANCE); this.hasIncreasingEffect = !player.getActivePotionEffects().isEmpty();
this.hadBadOmenEffect = this.hasBadOmenEffect;
this.hasBadOmenEffect = player.hasPotionEffect(PotionEffectType.BAD_OMEN);
double lastDistanceSq = Math.sqrt(this.lastDistance.getXDifference() * this.lastDistance.getXDifference() double lastDistanceSq = Math.sqrt(this.lastDistance.getXDifference() * this.lastDistance.getXDifference()
+ this.lastDistance.getZDifference() * this.lastDistance.getZDifference()); + this.lastDistance.getZDifference() * this.lastDistance.getZDifference());
+15 -49
View File
@@ -26,7 +26,7 @@ flight:
enabled: true enabled: true
# How many milliseconds to account for teleports # How many milliseconds to account for teleports
# Increase this is you debug 'tried to climb air' after teleports # Increase this is you debug 'tried to climb air' after teleports
accountForTeleports: 150 accountForTeleports: 300
# Checks if a player is faking it's ground status to fly # Checks if a player is faking it's ground status to fly
# Debugs as 'faked ground to fly' # Debugs as 'faked ground to fly'
groundFlight: groundFlight:
@@ -41,16 +41,14 @@ flight:
maxOffset: 0.005 maxOffset: 0.005
# How many milliseconds to account for teleports # How many milliseconds to account for teleports
# Increase this is you debug 'ignored gravity' after teleports # Increase this is you debug 'ignored gravity' after teleports
accountForTeleports: 150 accountForTeleports: 300
# Amount of illegal moves before flagging # Amount of illegal moves before flagging
vlBeforeFlag: 5 vlBeforeFlag: 5
# ElytraFly check settings # ElytraFly check settings
# Checks for illegal upward elytra movement # Checks for illegal upward elytra movement
elytrafly: elytrafly:
# Should this check be enabled? # Should this check be enabled?
enabled: true enabled: true
# Speed check settings # Speed check settings
# Checks if a player moves too fast # Checks if a player moves too fast
speed: speed:
@@ -63,7 +61,6 @@ speed:
baseLimit: 0.03125 baseLimit: 0.03125
# Prediction multiplier for custom walk speeds # Prediction multiplier for custom walk speeds
walkSpeedMultiplier: 1.4 walkSpeedMultiplier: 1.4
# Checks movement acceleration in the air # Checks movement acceleration in the air
# Debugs as 'exceeded acceleration limits' # Debugs as 'exceeded acceleration limits'
airAcceleration: airAcceleration:
@@ -73,7 +70,6 @@ speed:
baseLimit: 0.3725 baseLimit: 0.3725
# Limit multiplier for custom walk speeds # Limit multiplier for custom walk speeds
walkSpeedMultiplier: 1.4 walkSpeedMultiplier: 1.4
# Checks movement acceleration in the air # Checks movement acceleration in the air
# Debugs as 'had unexpected jumping behaviour' # Debugs as 'had unexpected jumping behaviour'
jumpBehaviour: jumpBehaviour:
@@ -81,7 +77,6 @@ speed:
enabled: true enabled: true
# Minimum movement distance needed to flag # Minimum movement distance needed to flag
minimumDistXZ: 0.42 minimumDistXZ: 0.42
# Checks movement speed on the ground # Checks movement speed on the ground
# Debugs as 'moved too fast on ground' # Debugs as 'moved too fast on ground'
groundSpeed: groundSpeed:
@@ -89,7 +84,6 @@ speed:
enabled: true enabled: true
# Initial speed limit value # Initial speed limit value
initialLimit: 0.34 initialLimit: 0.34
# Checks movement acceleration in the air # Checks movement acceleration in the air
# Debugs as 'exceeded vertical speed limit' # Debugs as 'exceeded vertical speed limit'
verticalSpeed: verticalSpeed:
@@ -97,19 +91,17 @@ speed:
enabled: true enabled: true
# 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 # Strafe check settings
# Checks if a player switches movement angle in air # Checks if a player switches movement angle in air
strafe: strafe:
# Should this check be enabled? # Should this check be enabled?
enabled: true enabled: true
# How many milliseconds to account for teleports # How many milliseconds to account for teleports
accountForTeleports: 100 accountForTeleports: 300
# Maximum angle change when moving in air # Maximum angle change when moving in air
maxAngleChange: 0.50 maxAngleChange: 0.5
# 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.04
# WaterWalk check settings # WaterWalk check settings
# Checks if a player is walking on water # Checks if a player is walking on water
waterwalk: waterwalk:
@@ -127,7 +119,7 @@ waterwalk:
# Should this part of the check be enabled? # Should this part of the check be enabled?
enabled: true enabled: true
# Maximum lunge Y motion to flag # Maximum lunge Y motion to flag
maxMotionY: 0.10 maxMotionY: 0.1
# Checks for small lunges in water # Checks for small lunges in water
# Debugs as 'tried to lunge in water' # Debugs as 'tried to lunge in water'
lunge: lunge:
@@ -136,7 +128,6 @@ waterwalk:
# Minimum xz distance before flagging # Minimum xz distance before flagging
# This combats false positives, while giving hackers not much leniency # This combats false positives, while giving hackers not much leniency
minimumDistXZ: 0.098 minimumDistXZ: 0.098
# FastLadder check settings # FastLadder check settings
# Checks if a player moves too fast on a ladder # Checks if a player moves too fast on a ladder
fastladder: fastladder:
@@ -148,7 +139,6 @@ fastladder:
speedDownMax: 0.15 speedDownMax: 0.15
# Amount of illegal ladder moves before flagging # Amount of illegal ladder moves before flagging
vlBeforeFlag: 3 vlBeforeFlag: 3
# BoatFly check settings # BoatFly check settings
# Checks if the player is flying in a boat # Checks if the player is flying in a boat
boatfly: boatfly:
@@ -156,7 +146,6 @@ boatfly:
enabled: true enabled: true
# Amount of in-boat airborne moments before flagging # Amount of in-boat airborne moments before flagging
vlBeforeFlag: 2 vlBeforeFlag: 2
# KillAura check settings # KillAura check settings
# Checks if the player uses a form of kill aura # Checks if the player uses a form of kill aura
killaura: killaura:
@@ -179,7 +168,6 @@ killaura:
pingCompensation: 0.0025 pingCompensation: 0.0025
# The multiplier of extra compensation for velocity # The multiplier of extra compensation for velocity
velocityMultiplier: 1.2 velocityMultiplier: 1.2
# Checks if the target it within a players viewing angle # Checks if the target it within a players viewing angle
# Debugs as 'tried to attack from an illegal angle' # Debugs as 'tried to attack from an illegal angle'
angle: angle:
@@ -189,7 +177,6 @@ killaura:
maxDifference: 50 maxDifference: 50
# 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
# Debugs as 'suspicious packet order' # Debugs as 'suspicious packet order'
packetOrder: packetOrder:
@@ -201,7 +188,6 @@ killaura:
minElapsedTime: 5 minElapsedTime: 5
# Amount of suspicious combat packet situations before flagging # Amount of suspicious combat packet situations before flagging
vlBeforeFlag: 3 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:
@@ -211,13 +197,11 @@ aimbot:
minYaw: 30 minYaw: 30
# Maximum yaw difference when repeated # Maximum yaw difference when repeated
maxYaw: 355 maxYaw: 355
# 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:
# Should this check be enabled? # Should this check be enabled?
enabled: true enabled: true
# Velocity check settings # Velocity check settings
# Checks if the player ignores knockback # Checks if the player ignores knockback
velocity: velocity:
@@ -227,7 +211,6 @@ velocity:
minimumPercentage: 75 minimumPercentage: 75
# Amount of low-velocity moments before flagging # Amount of low-velocity moments before flagging
vlBeforeFlag: 2 vlBeforeFlag: 2
# FastPlace check settings # FastPlace check settings
# Checks if the player places blocks too fast # Checks if the player places blocks too fast
fastplace: fastplace:
@@ -236,12 +219,11 @@ fastplace:
# Minimum time in milliseconds between block places # Minimum time in milliseconds between block places
minimumTime: 50 minimumTime: 50
# Amount of fastplace-moments before flagging a survival player # Amount of fastplace-moments before flagging a survival player
vlBeforeFlagSurvival: 2 vlBeforeFlagSurvival: 3
# Amount of fastplace-moments before flagging a creative player # Amount of fastplace-moments before flagging a creative player
vlBeforeFlagCreative: 3 vlBeforeFlagCreative: 4
# Amount of time in milliseconds to prevent a player from placing blocks after flagging # Amount of time in milliseconds to prevent a player from placing blocks after flagging
blockPlacementTime: 1000 blockPlacementTime: 1000
# IllegalInteract check settings # IllegalInteract check settings
# Checks if the player is using, placing or breaking blocks from illegal angles # Checks if the player is using, placing or breaking blocks from illegal angles
illegalinteract: illegalinteract:
@@ -270,7 +252,6 @@ illegalinteract:
pingCompensation: 0.0045 pingCompensation: 0.0045
# The multiplier of extra compensation for velocity # The multiplier of extra compensation for velocity
velocityMultiplier: 1.5 velocityMultiplier: 1.5
# BadPackets check settings # BadPackets check settings
# Checks for illegal packets # Checks for illegal packets
badpackets: badpackets:
@@ -280,7 +261,6 @@ badpackets:
minimumTps: 17.5 minimumTps: 17.5
# Maximum distance a player can move between packets # Maximum distance a player can move between packets
maxDistance: 25.0 maxDistance: 25.0
# MorePackets check settings # MorePackets check settings
# Checks for an extra amount of packets and modified game timers # Checks for an extra amount of packets and modified game timers
morepackets: morepackets:
@@ -289,18 +269,17 @@ morepackets:
# Minimum server TPS needed for MorePackets to be active # Minimum server TPS needed for MorePackets to be active
minimumTps: 17.5 minimumTps: 17.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: 500 minimumClamp: 1000
# 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: 100 triggerBalance: 100
# 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: 150 teleportCompensation: 300
# Should MorePackets be disabled for 'lagging' players? # Should MorePackets be disabled for 'lagging' players?
# This can easily be spoofed by clients! # This can easily be spoofed by clients!
disableForLagging: false disableForLagging: false
# Maximum ping value before MorePackets stops checking a player (-1 to disable) # Maximum ping value before MorePackets stops checking a player (-1 to disable)
# This can easily be spoofed by clients! # This can easily be spoofed by clients!
maxPing: -1 maxPing: -1
# Sneak check settings # Sneak check settings
# Checks if the player toggles sneak too fast # Checks if the player toggles sneak too fast
sneak: sneak:
@@ -310,10 +289,9 @@ sneak:
# This can easily be spoofed by clients! # This can easily be spoofed by clients!
disableForLagging: false disableForLagging: false
# Minimum server TPS needed for sneak # Minimum server TPS needed for sneak
minimumTps: 12 minimumTps: 15
# Minimum time in milliseconds between sneak toggles # Minimum time in milliseconds between sneak toggles
minToggleTime: 75 minToggleTime: 75
# NoSlow check settings # NoSlow check settings
# Checks if the player moves too fast while blocking # Checks if the player moves too fast while blocking
noslow: noslow:
@@ -325,13 +303,11 @@ noslow:
minimumDistXZ: 0.15 minimumDistXZ: 0.15
# Amount of no slowdown moments before flagging # Amount of no slowdown moments before flagging
vlBeforeFlag: 3 vlBeforeFlag: 3
# Spider check settings # Spider check settings
# Checks if the player tries to climb a non-climbable block # Checks if the player tries to climb a non-climbable block
spider: spider:
# Should this check be enabled? # Should this check be enabled?
enabled: true enabled: true
# NoFall check settings # NoFall check settings
# Checks if the player tries to ignore fall damage # Checks if the player tries to ignore fall damage
nofall: nofall:
@@ -339,7 +315,6 @@ nofall:
enabled: true enabled: true
# Amount of moves with a modified fall distance before flagging # Amount of moves with a modified fall distance before flagging
vlBeforeFlag: 6 vlBeforeFlag: 6
# Sprint check settings # Sprint check settings
# Checks if the player tries to sprint without the needed conditions # Checks if the player tries to sprint without the needed conditions
sprint: sprint:
@@ -347,7 +322,6 @@ sprint:
enabled: true enabled: true
# Minimum food level needed to sprint # Minimum food level needed to sprint
sprintFoodMin: 6 sprintFoodMin: 6
# FastBow check settings # FastBow check settings
# Checks if the player fires a bow too fast # Checks if the player fires a bow too fast
fastbow: fastbow:
@@ -355,7 +329,6 @@ fastbow:
enabled: true enabled: true
# Maximum percent error between predicted bow force and actual bow force # Maximum percent error between predicted bow force and actual bow force
bowError: 0.25 bowError: 0.25
# FastEat check settings # FastEat check settings
# Checks if the player consumes food too fast # Checks if the player consumes food too fast
fasteat: fasteat:
@@ -363,7 +336,6 @@ fasteat:
enabled: true enabled: true
# Minimum time in milliseconds it takes to consume food # Minimum time in milliseconds it takes to consume food
eatTimeMin: 1000 eatTimeMin: 1000
# FastHeal check settings # FastHeal check settings
# Checks if the player regains health too fast # Checks if the player regains health too fast
fastheal: fastheal:
@@ -375,10 +347,10 @@ fastheal:
# This can easily be spoofed by clients! # This can easily be spoofed by clients!
disableForLagging: false disableForLagging: false
# The minimum time it takes to regenerate health in milliseconds # The minimum time it takes to regenerate health in milliseconds
minHealTime: 495 # Vanilla is 500, but enforcing this will cause too many false positives
minHealTime: 475
# Amount of milliseconds a player can heal faster per millisecond of ping # Amount of milliseconds a player can heal faster per millisecond of ping
pingCompensation: 0.15 pingCompensation: 0.25
# FastProjectile check settings # FastProjectile check settings
# Checks if the player fires a projectile too fast # Checks if the player fires a projectile too fast
fastprojectile: fastprojectile:
@@ -388,7 +360,6 @@ fastprojectile:
projectilesToWait: 10 projectilesToWait: 10
# The minimum time in milliseconds it should have taken for the player fire 'projectilesToWait' projectiles # The minimum time in milliseconds it should have taken for the player fire 'projectilesToWait' projectiles
minimumTime: 1500 minimumTime: 1500
# ItemSpam check settings # ItemSpam check settings
# Checks if the player drops items too fast # Checks if the player drops items too fast
itemspam: itemspam:
@@ -398,7 +369,6 @@ itemspam:
dropsToWait: 10 dropsToWait: 10
# The minimum time in milliseconds it should have taken for the player to drop items 'dropsToWait' times # The minimum time in milliseconds it should have taken for the player to drop items 'dropsToWait' times
minimumTime: 800 minimumTime: 800
# FastInventory check settings # FastInventory check settings
# Checks if the player moves items in the inventory too fast # Checks if the player moves items in the inventory too fast
fastinventory: fastinventory:
@@ -408,19 +378,16 @@ fastinventory:
clicksToWait: 10 clicksToWait: 10
# The minimum time in milliseconds it should have taken for the player to click 'clicksToWait' times # The minimum time in milliseconds it should have taken for the player to click 'clicksToWait' times
minimumTime: 50 minimumTime: 50
# vClip check settings # vClip check settings
# Checks if the player is clipping # Checks if the player is clipping
vclip: vclip:
# Should this check be enabled? # Should this check be enabled?
enabled: true enabled: true
# ChatUnicode check settings # ChatUnicode check settings
# Checks for illegal unicode characters in the chat # Checks for illegal unicode characters in the chat
chatunicode: chatunicode:
# Should this check be enabled? # Should this check be enabled?
enabled: true enabled: true
# ChatSpam check settings # ChatSpam check settings
# Checks for a spam of chat messages # Checks for a spam of chat messages
chatspam: chatspam:
@@ -434,17 +401,16 @@ chatspam:
levelActionOne: 5 levelActionOne: 5
# Number of chat spam violations before action two (see config.yml) is executed # Number of chat spam violations before action two (see config.yml) is executed
levelActionTwo: 10 levelActionTwo: 10
# CommandSpam check settings # CommandSpam check settings
# Checks for a spam of commands # Checks for a spam of commands
commandspam: commandspam:
# Should this check be enabled? # Should this check be enabled?
enabled: true enabled: true
# Minimum time between commands # Minimum time between commands
timeMin: 400 timeMin: 250
# Time in milliseconds after which repeating a command is ignored # Time in milliseconds after which repeating a command is ignored
repeatIgnore: 500 repeatIgnore: 500
# Number of command spam violations before action one (see config.yml) is executed # Number of command spam violations before action one (see config.yml) is executed
levelActionOne: 5 levelActionOne: 5
# Number of command spam violations before action two (see config.yml) is executed # Number of command spam violations before action two (see config.yml) is executed
levelActionTwo: 10 levelActionTwo: 10