Remove broken FastBreak and NoSwing, fixed false positives and more config migrations

This commit is contained in:
Rammelkast committed 2020-07-19 12:32:43 +02:00
1 parent 128a668e6c
commit 07f3c3abce
16 files changed
+128 -582

No files matched your search

+66 -170
View File
@@ -1,54 +1,6 @@
# Maximum times a player can interact between animations
# Changing this value of almost never required
ANIMATION_INTERACT_MAX: 3
# Minimum time between animations
# Changing this value is almost never required
ANIMATION_MIN: 200
# Minimum time in between block breaks
# Decrease in case of false positives
BLOCK_BREAK_MIN: 0.1
# Maximum speed a player can travel forwards or backwards while sneaking
# This is a set value and shouldn't be changed unless you know what you're doing
XZ_SPEED_MAX_SNEAK: 0.15
# Maximum distance a player can break a block from
# Changing this value is almost never required
BLOCK_MAX_DISTANCE: 5.5
# Maximum distance a player can break a block from when in creative mode
# Changing this value is almost never required
BLOCK_MAX_DISTANCE_CREATIVE: 6.0
# Minimum time in between block placing
# Decrease in case of false positives
BLOCK_PLACE_MIN: 0.1
# Number of times required to punch a block before it breaks
# Changing this value is almost never required
BLOCK_PUNCH_MIN: 5
# Maximum percent error between predicted bow force and actual bow force
# Increase in case of false positives
BOW_ERROR: 0.25
# Number of chat spam violations before action one is executed
# Should be changed to personal preference
CHAT_ACTION_ONE_LEVEL: 5
# Number of chat spam violations before action two is executed
# Should be changed to personal preference
CHAT_ACTION_TWO_LEVEL: 10
# Minimum time between chats in milliseconds
# Should be changed to personal preference
CHAT_MIN: 500
# Time before repeating yourself in chat is ignored in milliseconds
# Should be changed to personal preference
CHAT_REPEAT_MIN: 600
# Number of command spam violations before action one is executed
# Should be changed to personal preference
COMMAND_ACTION_ONE_LEVEL: 5
# Number of command spam violations before action two is executed
# Should be changed to personal preference
COMMAND_ACTION_TWO_LEVEL: 10
# Minimum time between commands in milliseconds
# Should be changed to personal preference
COMMAND_MIN: 400
# Time before repeating a command in milliseconds
# Should be changed to personal preference
COMMAND_REPEAT_MIN: 500
# Time to exempt a player from moving because of taking damage
# Can be decreased very slightly to increase detection
# Increasing in case of false positives is almost never necessary and is not advised
@@ -59,18 +11,9 @@ DROP_CHECK: 10
# Minimum time it takes to drop X items
# Changing this value is almost never required
DROP_TIME_MIN: 800
# Minimum time in between eating
# Decrease in case of false positives
EAT_TIME_MIN: 1000
# Time to exempt a player from moving because of entering/exiting a vehicle
# Increase in case of false positives
ENTERED_EXITED_TIME: 1000
# Maximum distance a player can damage an entity from
# Changing this value is almost never required
ENTITY_MAX_DISTANCE: 5.9
# Maximum distance a player can damage an entity from when in creative mode
# Changing this value is almost never required
ENTITY_MAX_DISTANCE_CREATIVE: 6.5
# Time to exempt a player from moving because of exiting fly mode
# Changing this value is almost never required
EXIT_FLY_TIME: 2000
@@ -78,52 +21,6 @@ EXIT_FLY_TIME: 2000
# Can be decreased very slightly to increase detection
# Increasing in case of false positives is almost never necessary and is not advised
EXPLOSION_DAMAGE_TIME: 5000
# Max number of blocks that can be broken in a given time
# Increase in case of false positives
FASTBREAK_LIMIT: 2
# Number of times fastbreak can be observed before considering a player a cheater
# Can be increased in case of false positives, but shouldn't be required
FASTBREAK_MAXVIOLATIONS: 2
# Number of times fastbreak can be observed before considering a creative player a cheater
# Can be increased in case of false positives, but shouldn't be required
FASTBREAK_MAXVIOLATIONS_CREATIVE: 4
# Time a player is forced to wait after fastbreak has been detected
# Should be changed to personal preference
FASTBREAK_MAXVIOLATIONTIME: 10000
# Time to wait before checking block breaks
# Increase in case of false positives
FASTBREAK_TIMEMAX: 1000
# Time to wait before checking block breaks for creative mode users
# Increase in case of false positives
FASTBREAK_TIMEMAX_CREATIVE: 100
# Number of times fastplace can be observed before considering a player a cheater
# Increase in case of false positives
FASTPLACE_MAXVIOLATIONS: 2
# Number of times fastplace can be observed before considering a creative player a cheater
# Increase in case of false positives
FASTPLACE_MAXVIOLATIONS_CREATIVE: 3
# Time a player is forced to wait after fastplace has been detected
# Should be changed to personal preference
FASTPLACE_MAXVIOLATIONTIME: 10000
# Minimum time in between block places
# Decrease in case of false positives, but shouldn't be required
FASTPLACE_TIMEMIN: 50
# Number of blocks that can be broken without being hit before considering a player a cheater
# Increase in case of false positives
FASTPLACE_ZEROLIMIT: 3
# How many blocks you can travel before being considered a cheater
# Can be decreased to increase detection with the risk of false positives
# Can be increased to decrease false positives, but shouldn't be necesary
FLIGHT_BLOCK_LIMIT: 5.5
# Time to exempt a player from fastbreak check because of using instant break
# Increase in case of false positives, but shouldn't be necessary
INSTANT_BREAK_TIME: 2
# The number of clicks we should wait before checking if the player has used fast inventory
# Increase in case of false positives
INVENTORY_CHECK: 10
# The minimum time it should have taken for the player to click X times
# Increase in case of false positives
INVENTORY_TIMEMIN: 50
# Time to exempt a player from moving because of joining the server
# If your server is slow when a player joins, increasing this value is important
# Shouldn't be lower than 1500 or higher than 5000
@@ -132,90 +29,89 @@ JOIN_TIME: 2000
# Can be decreased very slightly to increase detection
# Increase in case of false positives, but shouldn't be necessary
KNOCKBACK_DAMAGE_TIME: 4000
# Maximum speed a player on a ladder can travel
# This is a set value and shouldn't be changed unless you know what you're doing
LADDER_Y_MAX: 0.11761
# Minimum speed a player on a ladder can travel
# This is a set value and shouldn't be changed unless you know what you're doing
LADDER_Y_MIN: 0.11759
# Maximum speed a player on a ladder can travel downwards
# This is a set value and shouldn't be changed unless you know what you're doing
LADDER_DOWN_MAX: 0.15
# Number of times a player can fail the nofall check before being considered a cheater
# Can be decreased to improve detenction with the risk of false positives
# Increase in case of false positives
NOFALL_LIMIT: 8
# Number of projectiles to wait for before checking how long they took to fire off
# Do not decrease this value
PROJECTILE_CHECK: 10
# Minimum time it takes to fire X projectiles
# Decrease in case of false positives
PROJECTILE_TIME_MIN: 1500
# Time to exempt a player from moving because of entering/exiting sneak mode
# Increase in case of false positives, shouldn't be necessary
SNEAK_TIME: 250
# Number of times a player can sprint without proper food level before being considered a cheater
# Can either be increased or decreased to your liking. Shouldn't make a massive difference.
SPRINT_FOOD_MIN: 6
# Maximum speed you can travel while sprinting
# This is a set value and shouldn't be changed unless you know what you're doing
SPRINT_MAX: 0.2
# Minimum travel distance for move to be considered a teleport and subsequently be ignored
# This is a set value and shouldn't be changed unless you know what you're doing
TELEPORT_MIN: 400
# Time to exempt a player from moving because of teleporting
# Increase in case of false positives
TELEPORT_TIME: 1000
# Number of command spam violations before action one is executed
# Should be changed to personal preference
COMMAND_ACTION_ONE_LEVEL: 5
# Number of command spam violations before action two is executed
# Should be changed to personal preference
COMMAND_ACTION_TWO_LEVEL: 10
# Number of chat spam violations before action one is executed
# Should be changed to personal preference
CHAT_ACTION_ONE_LEVEL: 5
# Number of chat spam violations before action two is executed
# Should be changed to personal preference
CHAT_ACTION_TWO_LEVEL: 10
# This is a set value and shouldn't be changed unless you know what you're doing
VELOCITY_SCHETIME: 2
# Maximum time a player is considered to have a change in velocity
# This is a set value and shouldn't be changed unless you know what you're doing
VELOCITY_CHECKTIME: 2100
# This is a set value and shouldn't be changed unless you know what you're doing
VELOCITY_MAXTIMES: 2
# This is a set value and shouldn't be changed unless you know what you're doing
VELOCITY_PREVENT: 5000
# This is a set value and shouldn't be changed unless you know what you're doing
VELOCITY_SCHETIME: 2
VELOCITY_MAXTIMES: 2
# This is a set value and shouldn't be changed unless you know what you're doing
VELOCITY_TIME: 3
# Maximum speed that a player can climb a waterfall
# Can be increased in case of false positives, shouldn't be necesary
WATER_CLIMB_MAX: 0.15
# Amount of suspicious mid-air movements before a player is suspected of glide
# Increase this in case of false positives
GLIDE_LIMIT: 5
# The amount of milliseconds to compensate for a teleport (50ms = 1 tick)
# Increase this in case of false positives
# Can be decreased in to tighten check
MOREPACKETS_TELEPORT_COMPENSATION: 150
# The amount of milliseconds that were offset to flag for MorePackets (50ms = 1 tick)
# Increase this in case of false positives
# Can be decreased in to tighten check
MOREPACKETS_TRIGGER_BALANCE: 100
# The maximum amount of overall lag compensating in milliseconds (50ms = 1 tick)
# Increase this in case of false positives
# Can be decreased in to tighten check
MOREPACKETS_MINIMUM_CLAMP: 500
# Maximum amount zero-velocity moments before a player is suspected
# Increase this in case of false positives
VELOCITY_MAX_FLAGS: 3
# The maximum angle difference allowed when attacking
# Increase this in case of false positives
KILLAURA_MAX_ANGLE_DIFFERENCE: 50
# The maximum amount of violations before flagging player as a cheater
# Increase this in case of false positives
KILLAURA_MAX_ANGLE_VIOLATIONS: 3
# The maximum angle difference allowed when placing or breaking a block
# Increase this in case of false positives, can be slightly decreased to tighten check
ILLEGALINTERACT_MAX_ANGLE_DIFFERENCE: 80
# The minimum time it takes to regenerate health
# Decrease this in case of false positives
MIN_HEAL_TIME: 490
# Maximum distance allowed between two movement packets
# Increase this in case of false positives
BADPACKETS_MAX_DISTANCE: 25.0
# Maximum amount of fastladder movements before flagging
# Increase this in case of false positives
FASTLADDER_MAX_FLAGS: 3
# Number of times a player can sprint without proper food level before being considered a cheater
# Can either be increased or decreased to your liking. Shouldn't make a massive difference.
SPRINT_FOOD_MIN: 6
# Maximum times a player can interact between animations
# Changing this value of almost never required
ANIMATION_INTERACT_MAX: 3
# Minimum time between commands in milliseconds
# Should be changed to personal preference
COMMAND_MIN: 400
# Time before repeating a command in milliseconds
# Should be changed to personal preference
COMMAND_REPEAT_MIN: 500
# Minimum time between chats in milliseconds
# Should be changed to personal preference
CHAT_MIN: 500
# Time before repeating yourself in chat is ignored in milliseconds
# Should be changed to personal preference
CHAT_REPEAT_MIN: 600
# Minimum time in between block breaks
# Decrease in case of false positives
BLOCK_BREAK_MIN: 0.1
# Minimum time in between block placing
# Decrease in case of false positives
BLOCK_PLACE_MIN: 0.1
# Minimum time in between eating
# Decrease in case of false positives
EAT_TIME_MIN: 1000
# Maximum percent error between predicted bow force and actual bow force
# Increase in case of false positives
BOW_ERROR: 0.25
# Maximum distance a player can break a block from
# Changing this value is almost never required
BLOCK_MAX_DISTANCE: 5.5
# Maximum distance a player can break a block from when in creative mode
# Changing this value is almost never required
BLOCK_MAX_DISTANCE_CREATIVE: 6.0
# Maximum speed a player on a ladder can travel
# This is a set value and shouldn't be changed unless you know what you're doing
LADDER_Y_MAX: 0.11761
# Minimum speed a player on a ladder can travel
# This is a set value and shouldn't be changed unless you know what you're doing
LADDER_Y_MIN: 0.11759
# The number of clicks we should wait before checking if the player has used fast inventory
# Increase in case of false positives
INVENTORY_CHECK: 10
# The minimum time it should have taken for the player to click X times
# Increase in case of false positives
INVENTORY_TIMEMIN: 50
# Minimum travel distance for move to be considered a teleport and subsequently be ignored
# This is a set value and shouldn't be changed unless you know what you're doing
TELEPORT_MIN: 400
# The change milliseconds between two keepalives before considering a player to be lagging
# Decrease this in case of clientside lag-related false positives
# Do not lower below 50 or increase above 75