Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
commit
  • Loading branch information
SakuraTao2007 committed Jul 13, 2022
1 parent e895e6c commit bf51011
Show file tree
Hide file tree
Showing 5 changed files with 241 additions and 0 deletions.
127 changes: 127 additions & 0 deletions GrimAC/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
# GrimAC main configuration
# Source code: https://github.com/MWHunter/Grim
# Copyright 2022 DefineOutside and contributors, Licensed under GPLv3.
# Modified binaries, or plugins with copied grim code, must be private,
# or with full source code available to buyers at no additional cost.

alerts:
# Should players with grim.alerts permission automatically enable alerts on join?
enable-on-join: true
# In addition to broadcasting alerts to players, should they also be sent to the console?
print-to-console: true

client-brand:
# This means it won't broadcast their brand to operators if the brand matches the following regexes
ignored-clients:
- "^vanilla$"

# How long should players have until we keep them for timing out? Default = 2 minutes
max-transaction-time: 60

Simulation:
# How much should we multiply total advantage by when the player is legit
# This is what the default config looks like (x axis = seconds, y axis = 1/1000 block): https://www.desmos.com/calculator/d4ufgxrxer
# 控制vl缩减
# setback-decay-multiplier: 0.999
setback-decay-multiplier: 1.099
# How large of an offset from the player's movement should we create a violation for?
# Measured in blocks from the possible movement
# We account for Optifine by switching trig tables but dropping this to 0.001 will reduce FastMath
# flagging the anticheat if this compensation doesn't work...
threshold: 0.009
# How large of a violation in a tick before the player gets immediately setback?
# 适当调整这个可以减少误封
# -1 to disable
immediate-setback-threshold: 0.0093
# How large of an advantage over all ticks before we start to setback?
# -1 to disable
max-advantage: 10
# After 50 seconds with default config, the player will go from 4 blocks -> 1 block of advantage
# This is to stop the player from gathering too many violations and never being able to clear them all
# Default advantage ceiling (x axis = seconds, y axis = 1/1000 block): https://www.desmos.com/calculator/4lovswdarj
max-ceiling: 2

# Checks to see if a player entered a block during a movement
Phase:
setbackvl: 1 # Glitching into blocks can allow wall climbing, plus this check is relatively stable
decay: 0.005
dont-alert-until: 10
alert-interval: 10

# Prediction-based no slow check
# Grim accounts for buggy netcode here... hard to false even when spamming right click and offhand button
# Much more stable than other anticheats, but please report any falses... I have fixed a ton of netcode issues here.
NoSlow:
# How much of an offset is "cheating"
# By default this is lower than other offs
# Flags by 0.03-0.2 consistently with NoSlow on
threshold: 0.001
# Setback fast on the first item to remove any advantage NoSlow gives
setbackvl: 50
# Decay's when the player uses an item AND is slowed by it
decay: 0.05
# It takes 32 ticks to fully consume an item... 25 will safely flag cheats here
dont-alert-until: 25
# You likely don't want to be spammed with alerts. Target alerting once per item that wasn't slowed for
alert-interval: 25

Knockback:
# How much of an offset is "cheating"
# By default this is 1e-5, which is safe and sane
# Measured in blocks from the correct movement
threshold: 0.00001
setbackvl: 100
decay: 0.025
dont-alert-until: 8
alert-interval: 5

Explosion:
threshold: 0.00001
setbackvl: 10
decay: 0.025
dont-alert-until: 8
alert-interval: 5

TimerA:
# Target 1.005 timer
decay: 0.005
setbackvl: 10
dont-alert-until: 5
alert-interval: 5
# Milliseconds that the player can accumulate for later use when they fall behind
# Could potentially allow 1.8 fast use/fast heal/fast bow bypasses if set too high, 120 ms seems like a good balance
drift: 120

# Same check method as TimerA, but for vehicles
TimerVehicle:
# Target 1.005 timer
decay: 0.005
setbackvl: 10
dont-alert-until: 5
alert-interval: 5

EntityControl:
decay: 0.05
setbackvl: 25
dont-alert-until: 40
alert-interval: 40

Reach:
# How much should we expand hitboxes by? 0.0005 should detect 3.0005+ reach
#
# There is 0.03 forced expansion with 1.9-1.18.1 (not 1.18.2), or some client/server combinations due to
# protocol changes and limitations. This check is most powerful with 1.7/1.8 clients on 1.8 servers.
threshold: 0.0099
# Should we cancel hits that we know are impossible?
# 3.00-3.03 hits may go through but still be flagged, due to packet order limitations
block-impossible-hits: true
# This will send an additional packet at the end of every tick to increase the likelihood of catching cheats
# This injects into server's connection list to send a final packet just before the server flushes
# Enabling this will increase bandwidth usage for all players
# This will not decrease overall server performance
# Enabling this will catch more cheaters.
# Leaving this disabled will still catch cheaters and will not cause false positives
# Unless you are a 1.8 PvP focused server, this additional packet is not recommended
enable-post-packet: true

config-version: 5
11 changes: 11 additions & 0 deletions GrimAC/discord.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
enabled: false
webhook: ""
embed-color: "#00FFFF"
violation-content:
- "**Player**: %player%"
- "**Check**: %check%"
- "**Violations**: %violations%"
- "**Client Version**: %version%"
- "**Brand**: %brand%"
- "**Ping**: %ping%"
- "**TPS**: %tps%"
36 changes: 36 additions & 0 deletions GrimAC/messages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# \u00BB is » (double >>), ANSI and UTF-8 interpret this differently... you may even see ? due to this
prefix: "&bNekoLite &8\u00BB"

alerts-enabled: "%prefix% &fAlerts enabled"
alerts-disabled: "%prefix% &fAlerts disabled"
client-brand-format: "%prefix% &f%player% &7加入房间 &8[ &f%brand% &8]"
console-specify-target: "%prefix% &cYou must specify a target as the console!"
player-not-found: "%prefix% &cPlayer is exempt or offline!"
player-not-this-server: "%prefix% &cPlayer is not on this server!"

# Valid placeholders:
# %prefix%
# %player%
# %check_name%
# %vl% - violations
# %verbose% - extra information from the check such as offsets, not all checks will add information
alerts-format: "%prefix% &f%player% &f使用作弊 &8[ &b%check_name% &8| &b%vl%VL &8| &7%verbose% &8]"

profile:
- "&7======================"
- "%prefix% &bProfile for &f%player%"
- "&bVersion: &f%version%"
- "&bClient Brand: &f%brand%"
- "&bHorizontal Sensitivity: &f%h_sensitivity%%"
- "&bVertical Sensitivity: &f%v_sensitivity%%"
- "&bFastMath Enabled: &f%fast_math%"
- "&7======================"
help:
- "&7======================"
- "/grim alerts &f- &7Toggle alerts"
- "/grim profile &f- &7View player info"
- "/grim help &f- &7View this help message"
- "/grim debug <player> &f- &7Developer Prediction output"
- "/grim perf &f- &7Developer ms/prediction"
- "/grim reload &f- &7Reloads the config"
- "&7======================"
67 changes: 67 additions & 0 deletions GrimAC/punishments.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# %check_name% - name of the check
# %vl% - violations
# %verbose% - extra information
# %player% - player name
# [alert] - special command to alert
Punishments:
Simulation:
# After how many seconds should a violation be removed?
remove-violations-after: 20
checks:
- "Simulation"
- "GroundSpoof"
- "Knockback"
- "Explosion"
- "Timer"
- "NoFall"
# Threshold:Interval Command
commands:
- "0:10 [alert]"
- "0:70 kick %player% S | NekoLite"
Post:
remove-violations-after: 30
checks:
- "Post"
commands:
- "0:10 [alert]"
- "0:30 kick %player% P | NekoLite"
BadPackets:
remove-violations-after: 30
checks:
- "BadPackets"
- "Crash"
commands:
- "0:20 [alert]"
# - "0:40 kick %player% BadPackets GrimAC"
Reach:
remove-violations-after: 120
checks:
- "Reach"
commands:
- "0:5 [alert]"
- "0:15 kick %player% R | NekoLite"
# - "0:15 kick %player% Reach GrimAC"
Misc:
remove-violations-after: 30
checks:
- "EntityControl"
- "NoSlow"
- "Place"
commands:
- "0:2 [alert]"
- "0:10 kick %player% M | NekoLite"
Combat:
remove-violations-after: 300
checks:
- "Killaura"
- "Aim"
commands:
- "0:1 [alert]"
- "0:5 kick %player% C | NekoLite"
# As of 2.2.10, there are no AutoClicker checks and this is a placeholder. 2.3 will include AutoClicker checks.
Autoclicker:
remove-violations-after: 30
checks:
- "Autoclicker"
commands:
- "0:2 [alert]"
Binary file added grimac-2.3.11.jar
Binary file not shown.

0 comments on commit bf51011

Please sign in to comment.