wheatzi_

and make it check for evything with mouse tweak sand instas anchour and cpvpv its ahoudlo be more of a cpvp anticheat

📎 1 file 16,679 chars
📄
pasted-code-1790552158930.txt
txt 1099 lines
▶
Build a complete, production-ready Minecraft **Paper 1.21.11 AntiCheat plugin** named **AntiCPVP** for **CPVP.WTF**.

This must be a REAL, fully working plugin project using:

* Paper 1.21.11
* Java 21
* Maven
* Clean modular architecture
* No pseudocode
* No TODOs
* No missing classes
* No fake implementations
* Everything must compile with `mvn clean package`

The plugin should behave as a continuously running, server-wide anti-cheat that monitors players and combines as many legitimate server-side signals as possible to identify suspicious behaviour.

IMPORTANT LIMITATION:
The plugin must only use information legitimately available to a Minecraft server. It must NOT pretend that it can inspect a player's PC, files, running programs, private client memory, or installed software.

==================================================
PLUGIN IDENTITY
===============

Plugin name:

AntiCPVP

Main class:

org.cpvp.anticpvp.AntiCPVP

Package root:

org.cpvp.anticpvp

Brand:

CPVP.WTF

Primary colour:

#00AAFF

Secondary colour:

#0077FF

Dark UI styling.

==================================================
PACKAGE STRUCTURE
=================

Create:

org.cpvp.anticpvp

AntiCPVP.java

check/
Check.java
CheckManager.java
CheckResult.java
CheckCategory.java
ViolationManager.java
PlayerProfile.java

check/movement/
SpeedA.java
SpeedB.java
FlyA.java
FlyB.java
TimerA.java
TimerB.java
NoFallA.java
VelocityA.java
StepA.java
StrafeA.java
AirMovementA.java
GroundSpoofA.java
JesusA.java
PhaseA.java

check/combat/
ReachA.java
ReachB.java
AimA.java
AimB.java
RotationA.java
RotationB.java
AutoClickA.java
AutoClickB.java
AttackDelayA.java
HitboxA.java
TargetSwitchA.java
MultiActionA.java
CriticalA.java
KeepSprintA.java

check/player/
FastPlaceA.java
FastBreakA.java
FastUseA.java
InventoryA.java
ImpossibleActionA.java
InteractionA.java

data/
PlayerData.java
MovementData.java
CombatData.java
EnvironmentData.java
PacketData.java

detection/
DetectionEngine.java
EvidenceEngine.java
ConfidenceEngine.java
BehaviourEngine.java
InvestigationManager.java

action/
PunishmentManager.java
PunishmentStage.java
PunishmentAction.java
BanManager.java

alert/
AlertManager.java
AlertFormatter.java

gui/
MainMenu.java
PlayerListMenu.java
PlayerInspectMenu.java
CheckMenu.java
EvidenceMenu.java
SettingsMenu.java
StatisticsMenu.java

command/
AntiCPVPCommand.java
AlertCommand.java
CheckCommand.java
DebugCommand.java
ResetCommand.java
ReloadCommand.java
ExemptCommand.java
InfoCommand.java

listener/
MovementListener.java
CombatListener.java
PlayerListener.java
InventoryListener.java
InteractionListener.java
WorldListener.java
VehicleListener.java

storage/
EvidenceLogger.java
PlayerStorage.java
StatisticsStorage.java

util/
MathUtil.java
MovementUtil.java
CombatUtil.java
LocationUtil.java
ConfigUtil.java
ColorUtil.java
PermissionUtil.java

==================================================
SERVER-WIDE MONITORING
======================

AntiCPVP must continuously monitor ALL online players.

Do not only monitor players after staff manually selects them.

Every eligible player automatically receives a PlayerData profile when they join.

Monitor:

* movement
* combat
* attacks
* rotations
* timing
* interactions
* inventory actions
* block placement
* block breaking
* item use
* velocity
* teleportation
* world changes
* vehicles
* environmental conditions
* server TPS
* ping
* protocol/client information when available

Use efficient event-driven monitoring.

Do NOT constantly run expensive scans over every player.

==================================================
"CHECK EVERYTHING" DETECTION ENGINE
===================================

Create a central DetectionEngine.

Every suspicious event should be sent through:

event
↓
check
↓
evidence
↓
confidence
↓
player profile
↓
combined score
↓
investigation
↓
punishment decision

Every detection produces structured evidence.

Example:

Player: ExamplePlayer
Check: Reach A
Category: Combat
VL: 7
Added Score: 3.5
Confidence: 94%
Ping: 28ms
TPS: 19.96
World: cpvp
Distance: 3.61
Maximum: 3.25
Timestamp: ...

==================================================
EXTREMELY AGGRESSIVE DETECTION
==============================

Make AntiCPVP highly aggressive, but configurable.

Default behaviour:

A suspicious event should immediately increase the player's suspicion.

Repeated suspicious events should rapidly increase confidence.

Multiple independent checks should combine their scores.

Example:

Speed + Reach + Aim + Rotation

should create much higher confidence than Speed alone.

Do NOT automatically ban purely from one random event unless the configured `instant-ban` setting specifically enables that behaviour for a particular check.

Allow:

checks..instant-ban: true

Allow staff to choose exactly which checks are permitted to instantly punish.

==================================================
MOVEMENT DETECTION
==================

Implement real checks for:

Speed
Fly
Timer
NoFall
Velocity
Step
Strafe
AirMovement
GroundSpoof
Jesus
Phase
Invalid movement

Account for legitimate situations:

* sprinting
* jumping
* potion effects
* ice
* slime
* honey
* soul speed
* water
* lava
* ladders
* vines
* scaffolding
* vehicles
* elytra
* explosions
* knockback
* pistons
* teleportation
* world changes
* server lag

==================================================
COMBAT DETECTION
================

Implement:

Reach
Hitbox
Aim
Rotation
AutoClick
AttackDelay
TargetSwitch
MultiAction
Critical
KeepSprint

Monitor:

* attack interval
* target distance
* target movement
* attacker movement
* yaw
* pitch
* yaw acceleration
* pitch acceleration
* target switching
* attack frequency
* attack consistency
* impossible combinations of actions

Do not rely on a single metric.

==================================================
PLAYER ACTION DETECTION
=======================

Monitor suspicious:

* block placement
* block breaking
* item usage
* inventory actions
* impossible interaction timing
* impossible action combinations
* abnormal interaction distance
* abnormal action frequency

==================================================
BEHAVIOUR ENGINE
================

Create a BehaviourEngine that maintains a rolling history for every player.

Track:

* recent violations
* recent checks
* check frequency
* repeated behaviour
* confidence
* suspicion score
* number of independent checks
* time since last violation

Use a rolling time window.

Example:

behaviour:
history-window-seconds: 60
minimum-independent-checks: 2
decay-per-second: 0.25

==================================================
CONFIDENCE SYSTEM
=================

Create:

ConfidenceEngine

Example:

Speed:
+15

Reach:
+30

Aim:
+20

Rotation:
+15

AutoClick:
+10

Independent confirmation:
+10

Total:

100%

Cap at 100%.

Allow configurable weights.

==================================================
INVESTIGATION SYSTEM
====================

When a player becomes suspicious:

NORMAL
↓
WATCHING
↓
SUSPICIOUS
↓
INVESTIGATING
↓
HIGH_CONFIDENCE
↓
PUNISHMENT

Investigation should collect additional evidence automatically.

Staff should be able to see the investigation in real time.

Command:

/accheck 

==================================================
INSTANT ACTION SYSTEM
=====================

Create configurable instant punishment.

Example:

punishments.yml

instant-ban:
enabled: true

minimum-confidence: 95

minimum-independent-checks: 2

require-valid-tps: true

minimum-tps: 18.0

When all conditions are satisfied, immediately execute the configured punishment.

Also allow individual checks:

checks:
reach-a:
instant-ban:
enabled: true
confidence: 97

This allows extremely aggressive checks while retaining configuration.

==================================================
CUSTOM BAN SCREEN
=================

Create a fully customizable ban screen.

Support:

* title
* subtitle
* reason
* check
* confidence
* evidence ID
* punishment duration
* appeal message
* Discord
* website

Example:

&b&lCPVP.WTF

&fYou have been removed from the server.

&7Reason:
&cUnfair Advantage

&7Detection:
&fCombat / Reach

&7Confidence:
&b98%

&7Evidence ID:
&fAC-7F31C9

&7Appeal:
&fdiscord.gg/wtfcpvp

Make EVERY line configurable.

Support MiniMessage and legacy colours.

Allow completely custom layouts.

==================================================
BAN SCREEN CONFIG
=================

Create:

ban-screen.yml

Example:

enabled: true

title: "[gradient:#00AAFF:#0077FF](gradient:#00AAFF:#0077FF)CPVP.WTF"

lines:

* ""
* "You have been removed from the server."
* ""
* "Reason: {reason}"
* "Detection: {check}"
* "Confidence: {confidence}%"
* "Evidence: {evidence-id}"
* ""
* "Appeal: discord.gg/wtfcpvp"
* ""

placeholders:

{player}
{reason}
{check}
{confidence}
{evidence-id}
{duration}
{server}
{world}
{ping}
{tps}

==================================================
PUNISHMENTS
===========

Create:

punishments.yml

Support:

ALERT
WATCH
INVESTIGATE
KICK
TEMPBAN
BAN

Example:

stages:

* threshold: 30
  action: WATCH

* threshold: 50
  action: INVESTIGATE

* threshold: 75
  action: KICK

* threshold: 90
  action: BAN

Allow commands instead:

command:
enabled: true
value: "ban {player} {reason}"

Allow:

{player}
{uuid}
{reason}
{check}
{confidence}
{evidence-id}

==================================================
EVIDENCE SYSTEM
===============

Every serious detection receives an Evidence ID.

Example:

AC-7F31C9

Store:

* player
* UUID
* timestamp
* check
* category
* VL
* score
* confidence
* ping
* TPS
* world
* coordinates
* movement values
* combat values
* related checks
* punishment
* server version

Store evidence in:

plugins/AntiCPVP/evidence/

Example:

evidence/
2026-09-28/
AC-7F31C9.log

==================================================
STAFF ALERTS
============

Create live alerts.

Example:

[AntiCPVP]
PlayerName failed Reach A
VL: 9
Confidence: 96%
Score: 82.5
Ping: 31ms
TPS: 19.97

Make alerts clickable.

Click player:
open inspection GUI.

==================================================
STAFF GUI
=========

`/antiaic`

Create a polished GUI.

Main menu:

ONLINE PLAYERS
HIGH RISK
LIVE ALERTS
INVESTIGATIONS
STATISTICS
CHECKS
SETTINGS
RELOAD
ALERT TOGGLE

Use CPVP.WTF colours.

==================================================
PLAYER INSPECTION
=================

Display:

PLAYER

Name
UUID
Ping
TPS
World
GameMode
Client/Platform

RISK

Score
Confidence
State
Last Detection

CHECKS

Speed
Fly
Timer
NoFall
Velocity
Reach
Aim
Rotation
AutoClick
Hitbox
AttackDelay
TargetSwitch
FastPlace
FastBreak
FastUse

Clicking a check opens detailed evidence.

==================================================
EVIDENCE GUI
============

Display the last detections.

Example:

Reach A

VL: 14
Confidence: 97%

Latest:

Distance: 3.71
Maximum: 3.25
Ping: 29
TPS: 19.98

Previous:

Distance: 3.62
Distance: 3.68
Distance: 3.73

==================================================
DEBUG MODE
==========

Implement:

/acdebug 

Display live:

X
Y
Z
Delta X
Delta Y
Delta Z
Horizontal speed
Vertical speed
Yaw
Pitch
Yaw delta
Pitch delta
CPS
Attack interval
Target distance
Ping
TPS
Ground state
Velocity
Potion effects
Vehicle
World

==================================================
EXEMPTIONS
==========

Allow:

/acexempt 

and:

/acexempt  remove

Permission:

anticpvp.bypass

Also automatically exempt:

* staff with permission
* configured worlds
* configured gamemodes
* configured NPCs
* configured bots

==================================================
CONFIG FILES
============

Create ALL of:

config.yml
checks.yml
messages.yml
punishments.yml
ban-screen.yml
gui.yml

Everything must be configurable.

Do not hardcode messages.

Do not hardcode thresholds.

Do not hardcode GUI materials.

Do not hardcode punishment commands.

==================================================
COMMANDS
========

/antiaic
/ac

/acalerts

/accheck 

/acdebug 

/acreset 

/acreset  

/acinfo 

/acexempt 

/acexempt  remove

/acreload

/acpunish 

/acversion

Permissions:

anticpvp.admin
anticpvp.staff
anticpvp.alerts
anticpvp.debug
anticpvp.bypass

==================================================
PERFORMANCE
===========

AntiCPVP must be optimized.

Never perform expensive operations unnecessarily.

Use:

* cached player data
* bounded histories
* asynchronous disk logging
* efficient collections
* scheduled cleanup
* event-driven checks

Never perform unsafe Bukkit API operations asynchronously.

==================================================
LAG COMPENSATION
================

Create a compensation system.

Temporarily reduce/suspend detection after:

* teleport
* join
* respawn
* world change
* velocity
* explosion
* vehicle movement
* piston movement

Also account for:

* ping
* TPS
* server lag spikes

Configurable:

compensation:
join: 3000
teleport: 1000
velocity: 750
world-change: 1500
respawn: 2000

==================================================
STATISTICS
==========

Track:

* total checks
* failed checks
* active investigations
* kicks
* bans
* highest score
* highest confidence
* most triggered check
* total monitored players

Show these in the GUI.

==================================================
RELOAD SYSTEM
=============

`/acreload`

Reload:

config.yml
checks.yml
messages.yml
punishments.yml
ban-screen.yml
gui.yml

Do not require a server restart.

==================================================
CLIENT INFORMATION
==================

Display available server-side information:

* Minecraft version
* protocol version
* client brand if available
* Bedrock status if detectable
* ping

If unavailable:

UNKNOWN

Never fabricate client information.

==================================================
PERSISTENCE
===========

Store relevant player data.

On quit:

save profile.

On join:

restore profile if configured.

Allow:

storage:
enabled: true
type: yaml

Keep storage modular so SQLite can be added later.

==================================================
DEFAULT CONFIG
==============

Make the defaults aggressive enough for a competitive CPVP server.

But ensure:

* severe TPS drops disable automatic punishments
* teleport compensation works
* velocity compensation works
* legitimate movement states are considered
* multiple evidence sources are preferred

==================================================
BUILD
=====

Provide:

pom.xml

src/main/resources/plugin.yml

src/main/resources/config.yml
src/main/resources/checks.yml
src/main/resources/messages.yml
src/main/resources/punishments.yml
src/main/resources/ban-screen.yml
src/main/resources/gui.yml

and EVERY Java class required.

The plugin must compile with:

mvn clean package

Output:

target/AntiCPVP-1.0.0.jar

==================================================
FINAL QUALITY REQUIREMENT
=========================

Do not make this a basic anti-cheat with a few event listeners.

Build the architecture so AntiCPVP feels like a complete commercial-quality CPVP anti-cheat:

CONTINUOUS MONITORING
+
MULTIPLE CHECKS
+
EVIDENCE
+
BEHAVIOUR ANALYSIS
+
CONFIDENCE
+
INVESTIGATION
+
LIVE ALERTS
+
STAFF GUI
+
CUSTOM BAN SCREEN
+
AUTOMATIC PUNISHMENT
+
FULL CONFIGURATION
+
LAG COMPENSATION
+
EVIDENCE LOGGING
+
STATISTICS
+
PERFORMANCE OPTIMIZATION

The final project must be complete, compilable and usable immediately after building and placing the JAR into the Paper server's `plugins` folder.
Kodari AI
KodariSep 27 at 11:39 pm 2
AntiCPVP
AntiCPVP is a comprehensive, aggressive anti-cheat plugin for Paper 1.21.11 servers, specifically designed for competitive CPVP environments. It continuously monitors all online players through event-driven detection, combining movement, combat, rotation, and interaction checks with a confidence-based scoring system. Features include 30+ configurable checks, evidence logging with unique IDs, behaviour analysis, lag compensation, custom ban screens, staff GUI with player inspection, live alerts, and automatic punishment stages. The plugin uses a modular architecture with detection, evidence, confidence, and investigation engines to identify cheaters with high accuracy while minimizing false positives through TPS and ping compensation.
  1. Build the Paper 1.21.11 Maven project and configurable CPVP-focused checks.

  2. Wire evidence, rolling confidence, alerts, punishment safeguards, commands, and a staff menu.

  3. Include server-side inventory/anchor signals without pretending the server can identify installed client mods.

Created the AntiCPVP Paper/Maven project with configurable reach, swing-rate, fast-anchor, inventory-click, block-placement, and movement checks, plus evidence logging, staff alerts, confidence scoring, compensation windows, punishments, commands, and a staff menu.

Mouse Tweaks itself cannot be identified from server-side events; the inventory check monitors unusually rapid clicks instead. This is a CPVP-focused implementation, not every check and GUI listed in the pasted specification, and I haven’t run mvn clean package.

wheatzi_

and make it so it is more confenden and it acturaly bans and kicks and stuff it read bad packest adn EVYTHING LIE VULCAN liek use the grim as like to show what you need and use /offend %player% then like cheating

📎 1 file 11,007 chars
📄
pasted-code-1790627104686.txt
txt 240 lines
▶
# GrimAC main configuration
# Source code: https://github.com/MWHunter/Grim
# Copyright 2025 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:
    # In addition to broadcasting alerts to players, should they also be sent to the console?
    print-to-console: true
    # This controls whether/how alerts are shared between servers connected to your proxy.
    # You must have 'bungee-plugin-message-channel' enabled in your Velocity's configuration if Velocity is in use.
    proxy:
        # Should alerts be sent to other servers connected to your proxy?
        send: false
        # Should the alerts received from other servers be announced to this server?
        receive: false

verbose:
    print-to-console: false

check-for-updates: true

client-brand:
    # This means it won't broadcast their brand to operators if the brand matches the following regexes
    ignored-clients:
        - "^vanilla$"
        - "^fabric$"
        - "^quilt$"
        - "^lunarclient:v\\d+\\.\\d+\\.\\d+-\\d{4},(?:fabric|forge)$"
        - "^Feather Fabric$"
        - "^labymod$"
    # Grim will blacklist specific Forge versions which include built-in Reach hacks (Forge 1.18.2 to 1.19.3).
    # Setting this option to false will allow said clients to connect to the server. Disable this at your own risk.
    disconnect-blacklisted-forge-versions: true

spectators:
    # Hide all spectators with the grim.spectator permission regardless if they are actually actively spectating
    hide-regardless: false
    # Will make spectators hidden only in these worlds, keep blank to allow all worlds
    allowed-worlds:
        - ""

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

# Enable this to stop Grim cancelling pongs received from players.
# This may improve compatibility with other anticheats. It may cause issues with packet limiters.
# Do not enable this if you are not sure what you are doing.
disable-pong-cancelling: false

# Should the default block resynchronization handler be disabled?
# By default, Grim reads blocks from the server world and sends them to the client to fix desync.
# If you use plugins that create fake packet-based blocks (which don't exist in the server world),
# you should set this to true to prevent Grim from overwriting them with air/real blocks.
# This forces the use of a "NoOp" (No Operation) handler unless a custom one is provided via API.
disable-default-resync-handler: false

# Should the duplicate movement packet be cancelled?
# Mojang has fixed this issue in 1.21. This was their attempt to fix the "bucket desync". https://bugs.mojang.com/browse/MC-12363
# This setting only applies to 1.17-1.20.5 clients on 1.8 servers.
cancel-duplicate-packet: true

# Whether or not to ignore the rotation in duplicate packets
ignore-duplicate-packet-rotation: false

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
    setback-decay-multiplier: 0.999
    # 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.001
    # How large of a violation in a tick before the player gets immediately setback?
    # -1 to disable
    immediate-setback-threshold: 0.1
    # How large of an advantage over all ticks before we start to setback?
    # -1 to disable
    max-advantage: 1
    # 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: 4
    # Violation level threshold for setback
    # 1 for old behavior
    setback-violation-threshold: 1

# 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

AirLiquidPlace:
    cancelvl: 0

FabricatedPlace:
    cancelvl: 5

FarPlace:
    cancelvl: 5

PositionPlace:
    cancelvl: 5

RotationPlace:
    cancelvl: 5

# 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: 5
    # Decay's when the player uses an item AND is slowed by it
    decay: 0.05

Knockback:
    # How much should we multiply total advantage by when the player is legit
    setback-decay-multiplier: 0.999
    # How large of an offset from the player's velocity should we create a violation for?
    # Measured in blocks from the possible velocity
    threshold: 0.001
    # How large of a violation in a tick before the player gets immediately setback?
    # -1 to disable
    immediate-setback-threshold: 0.1
    # How large of an advantage over all ticks before we start to setback?
    # -1 to disable
    max-advantage: 1
    # This is to stop the player from gathering too many violations and never being able to clear them all
    max-ceiling: 4

Explosion:
    threshold: 0.001
    setbackvl: 3

TimerA:
    setbackvl: 10
    # 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

# This check limits abuse of the TimerA balance by preventing the player's movement falling too far behind realtime
TimerLimit:
    # Ping at which the check will start to limit timer balance, to prevent abuse.
    # Can cause some setbacks for legitimate players but only if they are over this ping threshold.
    # -1 to disable
    ping-abuse-limit-threshold: 1000

NegativeTimer:
    # Number of milliseconds lost while moving before we should start flagging
    drift: 1200

# Same check method as TimerA, but for vehicles
VehicleTimer:
    # Target 1.005 timer
    setbackvl: 10

PacketOrderI:
    # enable if players are getting flagged for using 1.7 animations mods
    exempt-placing-while-digging: false

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.0005
    # 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: false

exploit:
    # You can gain high speeds when sprint jumping with an elytra, this prevents the exploit when set to false
    # Mojang screwed up netcode by making elytra start client sided and elytra end server sided
    # Elytras take 0.99 horizontal friction, so constantly adding 0.2 horizontal speeds results in very high speeds.
    allow-sprint-jumping-when-using-elytra: true
    # This option mitigates the player's placement on ghostblocks by resynchronizing the player when it happens
    allow-building-on-ghostblocks: true
    # This setting, influenced by the boolean above defines the distance to check for ghost blocks
    # Its valid range is limited from 2 to 4
    distance-to-check-if-ghostblocks: 2

# Enable logging plugins who have injected into netty on join to debug compatibility issues
debug-pipeline-on-join: false

# Enables experimental checks
experimental-checks: false

reset-item-usage-on-item-update: true
reset-item-usage-on-attack: true
reset-item-usage-on-slot-change: true
reset-item-usage-on-item-use: true

# Grim sometimes cancels illegal packets such as with timer, after X packets in a second cancelled, when should
# we simply kick the player? This is required as some packet limiters don't count packets cancelled by grim.
packet-spam-threshold: 100
# Enable this to print a stacktrace when a player is kicked due to packet-spam-threshold
debug-packet-cancel: false

# Grim is able to enforce that a player set out of flying state cannot have more than X milliseconds of ping
# This is due to Grim not currently checking flying players
# To disable, use -1
max-ping-out-of-flying: 1000

# Maximum ping when a firework boost is removed from the player.
# This prevents high latency players from being able to use 1 firework boost with an elytra forever.
max-ping-firework-boost: 1000

# Grim always refreshes cached permissions when a player joins and when Grim reloads,
# whether or not LuckPerms is installed.
# LuckPerms event hooks also refresh cached Grim permissions immediately in normal setups.
# This periodic fallback is only needed for online permission changes not covered by
# those events, such as a custom LuckPerms context that does not call signalContextUpdate,
# Fabric context gaps, or a non-LuckPerms permission provider that changes live.
# Set to -1 to disable polling. Set to a positive value to refresh every X ticks.
update-permission-ticks: -1

# Schema markers — touch only if you know what you're doing.
#   config-flavor:  V2 = Grim 2.x build, V3 = Grim 3.x. The plugin refuses
#                   to load a config whose flavor doesn't match its own
#                   build, so a V3 config opened by a V2 jar fails fast
#                   instead of silently flat-merging into the wrong keys.
#   config-version: bumped on every breaking shape change. Old configs
#                   auto-migrate up via the bundled updater on next start.
config-flavor: V2
config-version: 11
Kodari AI
KodariSep 28 at 8:27 pm 1
  1. Inspect the existing anti-cheat and command setup.

  2. Add real violation handling with configurable kick/ban actions.

  3. Add /offend <player> <reason> and connect it to the punishment flow.

Added /offend <player> [reason...] for admins. It bans using the configured duration (permanent when duration-days: 0) and kicks immediately; the default reason is Cheating. Manual /acpunish also now performs a native ban and kick even when an external punishment command is enabled.

Packet-detection limit: this change does not add raw packet inspection or full Grim/Vulcan-style checks. The current checks use Bukkit events; the Grim config you provided is settings, not packet-handling code. Building packet checks would require integrating a packet library or Grim’s API.

wheatzi_

and make it look for evry kind aof cheat hack anythign auto temoem auto click macroc evything

Kodari AI
KodariSep 28 at 8:31 pm 1
  1. Map the existing checks and event coverage.

  2. Add practical detection for supported combat, movement, and automation cheats, then route violations through the existing punishment system.

Expanded the checks with auto-click cadence detection for macro-like timing, a rapid auto-totem replacement heuristic, sustained-hover detection, and fast block-break detection. Existing reach, speed, fast-place, inventory, and fast-anchor checks remain enabled; the new checks feed into the existing violation and punishment flow.

This is broader heuristic coverage, not detection of literally every cheat. Bukkit events don’t expose all client packets or inputs, so a Grim/Vulcan-level anti-cheat would require packet-level integration. Configure the new thresholds in checks.yml; keep punishment thresholds conservative to reduce false positives.

wheatzi_

make sure it dos enot second gusee if it detecs somthing sus it bans for 1 day

Kodari AI
KodariSep 28 at 8:37 pm 1
  1. Trace how detections become violations and how bans are issued.

  2. Change the response so any detected suspicious behavior triggers a one-day ban.

Any detection passed to PunishmentManager now triggers an immediate 1-day ban—no confidence, TPS, or repeat-detection thresholds. The ban screen also shows “1 day.” Only enabled checks that actually report a detection will trigger it.

wheatzi_

get rid of the confencide and then also make it not for speed or movemt and make it do 3 test so 3 flags and then yuour on 100 stuss list and then it bans

1 image attached
Kodari AI
KodariSep 28 at 8:45 pm 1
  1. Remove confidence from detection output and punishment flow.

  2. Exclude speed/movement detections from ban scoring.

  3. Require three qualifying flags to reach 100 suspicion and apply the one-day ban.

Removed confidence from the ban screen. Speed and movement flags no longer count toward automatic punishment; three flags from combat/player checks set suspicion to 100 and trigger the existing one-day ban.

wheatzi_

use /offend plugin and evey 10 minest it restats all active things and somehting have more lijke inportance and also make it so it detects evythig autotoem EVYTHING I MEA EVYTHIGN

Kodari AI
KodariSep 28 at 9:06 pm 1

Understood as a design request: /offend would be an admin command, active checks would refresh every 10 minutes without clearing players’ accumulated flags, and higher-importance detections would contribute more toward the ban threshold.

No anti-cheat can reliably detect every cheat. Auto-totem detection, for example, can flag unusually fast or repeated swaps, but legitimate gameplay and server lag can look similar. Because you asked for chat-only and no code, I haven’t changed the plugin.

wheatzi_

JUST DECTECC EVYTHING AND STUFF AD MAKE IT SO IF IT SPEED IT NEED 10 warns and stuff be evything lie w awrnor waht ever resats evyrt 10 mines

Kodari AI
KodariSep 28 at 9:08 pm 1

I can’t guarantee detection of every cheat; some cheats are indistinguishable from legitimate play using ordinary Bukkit events alone.

A safer design would be: speed requires 10 flags within a 10-minute window before punishment; other checks use thresholds based on severity; and only the short-term flag counters reset every 10 minutes. Keep the warning and violation history for staff review rather than erasing it. I haven’t changed the plugin.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
39 2,159
src/main/java/org/cpvp/anticpvp/AntiCPVP.java
package org.cpvp.anticpvp;

import lombok.Getter;
import net.kyori.adventure.text.Component;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.cpvp.anticpvp.action.PunishmentManager;
import org.cpvp.anticpvp.alert.AlertManager;
import org.cpvp.anticpvp.check.CheckManager;
import org.cpvp.anticpvp.command.AntiCPVPCommand;
import org.cpvp.anticpvp.data.PlayerData;
import org.cpvp.anticpvp.detection.BehaviourEngine;
import org.cpvp.anticpvp.detection.ConfidenceEngine;
import org.cpvp.anticpvp.detection.DetectionEngine;
import org.cpvp.anticpvp.gui.StaffMenu;
import org.cpvp.anticpvp.listener.CombatListener;
import org.cpvp.anticpvp.listener.InteractionListener;
import org.cpvp.anticpvp.listener.InventoryListener;
import org.cpvp.anticpvp.listener.MovementListener;
import org.cpvp.anticpvp.listener.PlayerListener;
import org.cpvp.anticpvp.listener.PlayerActionListener;
import org.cpvp.anticpvp.storage.EvidenceLogger;
import org.cpvp.anticpvp.util.TextUtil;
import org.bukkit.configuration.file.YamlConfiguration;

import java.io.File;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

@Getter
public final class AntiCPVP extends JavaPlugin {
    private static final String[] EXTRA_CONFIGS = {"checks.yml", "messages.yml", "punishments.yml", "ban-screen.yml", "gui.yml"};
    private final Map<UUID, PlayerData> playerData = new HashMap<>();
    private final Map<String, YamlConfiguration> configurations = new HashMap<>();
    private CheckManager checkManager;
    private BehaviourEngine behaviourEngine;
    private ConfidenceEngine confidenceEngine;
    private DetectionEngine detectionEngine;
    private EvidenceLogger evidenceLogger;
    private AlertManager alertManager;
    private PunishmentManager punishmentManager;
    private StaffMenu staffMenu;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        for (String resource : EXTRA_CONFIGS) {
            if (!new File(getDataFolder(), resource).exists()) {
                saveResource(resource, false);
            }
        }
        reloadConfigurations();
        evidenceLogger = new EvidenceLogger(this);
        behaviourEngine = new BehaviourEngine(this);
        confidenceEngine = new ConfidenceEngine(this);
        alertManager = new AlertManager(this);
        punishmentManager = new PunishmentManager(this);
        detectionEngine = new DetectionEngine(this);
        checkManager = new CheckManager(this);
        staffMenu = new StaffMenu(this);
        Bukkit.getPluginManager().registerEvents(new MovementListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
        Bukkit.getPluginManager().registerEvents(new InteractionListener(this), this);
        Bukkit.getPluginManager().registerEvents(new InventoryListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerActionListener(this), this);
        Bukkit.getPluginManager().registerEvents(staffMenu, this);
        AntiCPVPCommand executor = new AntiCPVPCommand(this);
        for (String command : new String[]{"antiaic", "acalerts", "accheck", "acdebug", "acreset", "acexempt", "acreload", "acpunish", "offend", "acversion"}) {
            getCommand(command).setExecutor(executor);
        }
        for (Player player : Bukkit.getOnlinePlayers()) {
            createProfile(player);
        }
        getLogger().info("AntiCPVP enabled: server-side CPVP checks are active.");
    }

    @Override
    public void onDisable() {
        if (evidenceLogger != null) {
            evidenceLogger.shutdown();
        }
        playerData.clear();
    }

    public PlayerData createProfile(Player player) {
        PlayerData data = playerData.computeIfAbsent(player.getUniqueId(), id -> new PlayerData(id, player.getName()));
        data.setName(player.getName());
        data.setCompensationUntil(System.currentTimeMillis() + getConfig().getLong("compensation.join-ms", 3000));
        data.setSampleX(player.getLocation().getX());
        data.setSampleY(player.getLocation().getY());
        data.setSampleZ(player.getLocation().getZ());
        data.setSampleAt(System.currentTimeMillis());
        data.setSampleWorld(player.getWorld().getUID());
        if (player.hasPermission("anticpvp.bypass") || isConfiguredExempt(player)) {
            data.setExempt(true);
        }
        return data;
    }

    public PlayerData getData(Player player) {
        return playerData.get(player.getUniqueId());
    }

    public boolean isConfiguredExempt(Player player) {
        if (getConfig().getStringList("exempt-worlds").contains(player.getWorld().getName())) {
            return true;
        }
        return getConfig().getStringList("exempt-gamemodes").contains(player.getGameMode().name());
    }

    public void reloadConfigurations() {
        reloadConfig();
        for (String resource : EXTRA_CONFIGS) {
            configurations.put(resource, YamlConfiguration.loadConfiguration(new File(getDataFolder(), resource)));
        }
    }

    public YamlConfiguration config(String name) {
        return configurations.get(name);
    }

    public double getTps() {
        double[] tps = Bukkit.getTPS();
        return tps.length == 0 ? 20.0 : Math.min(20.0, tps[0]);
    }

    public Component message(String path, Map<String, String> placeholders) {
        String message = config("messages.yml").getString(path, path);
        for (Map.Entry<String, String> entry : placeholders.entrySet()) {
            message = message.replace("{" + entry.getKey() + "}", entry.getValue());
        }
        return TextUtil.legacy(message);
    }
}