📎
1 file
26,041 chars
📄
pasted-code-1794303134848.txt
txt
1156 lines
▶
pasted-code-1794303134848.txt
txt
1156 lines
# DAVILxAntiCheat
## Advanced Minecraft AntiCheat, Fabric Client Verification & Security System
**Project Type:** Dual-Component Minecraft Security System
**Server Platform:** Paper
**Client Platform:** Fabric
**Minecraft Version:** 1.21.11
**Java Version:** Java 21
**Project Architecture:** Independent Paper Plugin + Fabric Client Companion
**Primary Objective:** Advanced Client Verification, Unauthorized Mod Detection, Combat Automation Detection, Automated Mining Detection, and Automatic Punishment.
---
# 1. PROJECT OVERVIEW
Develop a complete, professional Minecraft AntiCheat system named **DAVILxAntiCheat**.
This project must provide an advanced security solution for Minecraft multiplayer servers, particularly servers running competitive PvP, Crystal PvP, Survival, Lifesteal, and SMP gameplay.
The system must identify prohibited client modifications, detect suspicious gameplay automation, verify player clients during login, and automatically apply configurable punishments when sufficient evidence confirms a violation.
The system must include two independent but fully integrated components:
**A. DAVILxAntiCheat-Paper**
- Server-side AntiCheat plugin.
- Detection engine.
- Punishment system.
- Database.
- Admin commands.
- Admin GUI.
- Verification management.
- Configuration management.
**B. DAVILxAntiCheat-Fabric**
- Client-side Fabric companion mod.
- Installed-mod identification.
- Client verification.
- Full-screen loading interface.
- Secure communication with the Paper plugin.
- Verification result handling.
Both components must operate as one integrated AntiCheat system.
IMPORTANT: This is a dual-project architecture. Do not attempt to compile both components as one project type.
---
# 2. CRITICAL PROJECT ARCHITECTURE
The existing development environment currently identifies the project as a Java Server Plugin project.
Resolve this limitation properly.
DO NOT:
- Convert the existing Paper project into a Fabric project.
- Delete existing project files.
- Replace the Paper plugin.
- Combine incompatible dependencies.
- Put Fabric classes inside the Paper plugin.
- Put Paper API dependencies inside the Fabric mod.
- Generate fake or incomplete JAR files.
Instead, create two independent Gradle projects.
## PROJECT A: DAVILxAntiCheat-Paper
Project Type: Java Server Plugin
Requirements:
- Minecraft 1.21.11.
- Paper API.
- Java 21.
- Gradle build system.
- Server-side security engine.
Final output:
`DAVILxAntiCheat-Paper.jar`
## PROJECT B: DAVILxAntiCheat-Fabric
Project Type: Fabric Client Mod
Requirements:
- Minecraft 1.21.11.
- Fabric Loader.
- Compatible Fabric API.
- Java 21.
- Fabric Loom.
- Gradle build system.
Final output:
`DAVILxAntiCheat-Fabric.jar`
If the development platform cannot create a second project automatically, generate the complete Fabric project separately and provide clear instructions for importing it into a new Fabric 1.21.11 project.
Continue developing the existing Paper project independently.
---
# 3. COMPLETE FABRIC CLIENT VERIFICATION SYSTEM
This is one of the most important features.
Whenever a player joins the server, DAVILxAntiCheat must initiate client verification.
The Paper plugin must communicate with the Fabric companion mod using a secure, versioned networking protocol.
The Fabric companion must identify supported installed-mod information and report it to the server.
## Verification Requirements
The system should:
1. Identify the player's client environment.
2. Verify Fabric Loader compatibility.
3. Identify installed mods.
4. Compare identified mods against the forbidden-mod database.
5. Identify supported known client signatures.
6. Check verification protocol compatibility.
7. Validate the verification response.
8. Record the verification result.
9. Allow or deny entry according to configured policies.
## Client Information
Collect:
- Player UUID.
- Player username.
- Minecraft version.
- Fabric Loader version.
- Companion mod version.
- Identified mod IDs.
- Mod versions where available.
- Verification timestamp.
- Verification status.
Do not collect unrelated personal information.
IMPORTANT:
A normal Paper plugin cannot independently inspect every installed Fabric mod.
The Fabric companion is required for client-side mod identification.
Client-reported information must not be treated as infallible proof. Implement verification integrity checks and clearly distinguish verified information from untrusted client reports.
Do not claim guaranteed detection of renamed, modified, hidden, or spoofed client modifications.
---
# 4. FORBIDDEN MOD AND CLIENT DETECTION
Create a dedicated Forbidden Mod Detection Engine.
The system must check ONLY the following categories unless an administrator manually adds additional entries.
## A. Freecam
Detect known Freecam modifications.
Requirements:
- Identify known Freecam mod IDs.
- Support configurable signatures.
- Record detection evidence.
- Apply configurable punishment.
## B. Baritone
Detect known Baritone installations and supported automation indicators.
Requirements:
- Identify known Baritone mod IDs.
- Support configurable mod identification.
- Integrate with automated mining detection.
- Record detection evidence.
## C. Wurst Client
Identify known Wurst Client components and supported signatures.
## D. Meteor Client
Identify known Meteor Client components and supported signatures.
## E. Other Hacked Clients
Support an administrator-managed database for other reliably identifiable hacked clients.
Do not automatically classify every unfamiliar mod as a hacked client.
## F. Auto Shield Break
Detect supported automated shield-breaking modifications and suspicious automation behaviour.
## G. Crystal PvP Optimizers
Detect prohibited Crystal PvP automation or unfair gameplay modifications.
Distinguish legitimate performance optimizers from prohibited automation.
## H. Anchor PvP Optimizers
Detect prohibited Anchor PvP automation and unfair gameplay modifications.
Do not automatically ban legitimate performance optimizers.
## Mod Management Requirements
Every forbidden mod must have:
- Unique identifier.
- Display name.
- Category.
- Detection method.
- Detection confidence.
- Enabled/disabled setting.
- Individual punishment.
- Custom punishment reason.
- Logging.
- Staff notification.
Administrators must be able to add new prohibited mod identifiers through configuration without modifying the source code.
---
# 5. FULL-SCREEN VERIFICATION LOADING INTERFACE
Create a beautiful, professional, modern full-screen verification interface inside the Fabric client companion mod.
This interface is mandatory.
The interface should appear when a player connects and verification begins.
It should cover the complete Minecraft game viewport, not merely appear as a small inventory or chat notification.
## Visual Design
Use a modern dark security-themed design.
Suggested visual style:
- Dark background.
- Professional typography.
- Clean spacing.
- Blue or cyan accent colors.
- Smooth transitions.
- Modern progress indicators.
- Minimal unnecessary decoration.
All visual properties must be configurable.
## Main Interface Layout
Display:
**DAVILxAntiCheat**
SECURITY VERIFICATION
Checking Minecraft Client...
### Verification Checklist
1. Client Connection
2. Fabric Loader
3. Installed Mods
4. Forbidden Mod Detection
5. Client Integrity
6. Security Verification
7. Final Verification
## Status Indicators
Use:
- Green checkmark for completed verification.
- Animated indicator for the current check.
- Neutral indicator for pending checks.
- Red error indicator for failed checks.
## Progress System
Display:
- Verification percentage.
- Current verification stage.
- Progress bar.
- Loading animation.
- Current status message.
The percentage must be based on actual verification progress.
Never display fake progress or keep the player waiting unnecessarily.
## Successful Verification
After successful verification:
- Display a success message.
- Complete the interface animation.
- Automatically close the overlay.
- Allow normal gameplay.
## Failed Verification
If verification fails:
- Display the failure reason.
- Display the relevant instructions.
- Follow the server's configured verification policy.
- Prevent unauthorized entry into protected gameplay.
## Loading Screen Customization
Allow configuration of:
- Main title.
- Subtitle.
- Server name.
- Logo.
- Background.
- Text colors.
- Accent colors.
- Progress bar.
- Animation speed.
- Loading messages.
- Verification stages.
- Completion message.
- Error messages.
- Enable/disable interface.
Support different screen resolutions and GUI scales.
---
# 6. CUSTOM BAN DISCONNECT SCREEN
When a player receives a ban, display a professional customized disconnect message.
Use Minecraft's supported disconnect-screen functionality.
The message should include:
- Server branding.
- Security warning.
- Detected modification.
- Detection reason.
- Punishment duration.
- Ban expiration.
- Instructions to remove the prohibited modification.
- Appeal information.
### Example
CASTLE SMP
UNAUTHORIZED MOD DETECTED
Your Minecraft client contains a prohibited modification.
Detected Modification: Meteor Client
Detection Status: CONFIRMED
Punishment: 30 DAYS TEMPORARY BAN
Please remove the prohibited modification before attempting to join again.
If you believe this detection is incorrect, contact the server administration team.
DAVILxAntiCheat Security System.
All text, colors, formatting, and branding must be configurable.
The disconnect screen must display the actual server-side ban information rather than relying on an untrusted client-generated message.
---
# 7. ADVANCED AUTOTOTEM DETECTION
Create a dedicated AutoTotem Detection Engine.
This feature must receive special development attention.
The objective is to identify automated Totem of Undying replacement behaviour.
## Detection Behaviour
Monitor:
- Totem activation events.
- Totem replacement events.
- Offhand inventory changes.
- Inventory transactions.
- Replacement timing.
- Repeated switching patterns.
- Suspiciously consistent automation behaviour.
## Timing Analysis
Record the interval between consecutive Totem replacements.
Example:
First Replacement: 80ms
Second Replacement: 85ms
Third Replacement: 78ms
These repeated timings may indicate automated inventory behaviour.
However, a single fast replacement must never independently trigger a ban.
## Advanced Evidence Analysis
Consider:
- Player ping.
- Server TPS.
- Network latency.
- Packet processing time.
- Inventory state.
- Player actions.
- Number of repeated samples.
- Timing consistency.
- Legitimate manual inventory behaviour.
The detection engine must calculate a configurable violation score.
Punishment should only occur after sufficient repeated evidence.
Do not assume that a particular millisecond value universally proves AutoTotem usage.
## AutoTotem Default Configuration
Create:
`autototem.yml`
```yaml
autototem:
enabled: true
detection:
minimum-samples: 5
minimum-confirmations: 3
suspicious-delay-ms: 100
maximum-ping: 150
violation-threshold: 50
false-positive-protection: true
punishment:
enabled: true
type: TEMPBAN
duration: 30d
messages:
reason: "AutoTotem - Unauthorized Inventory Automation"
```
Every value must be independently editable.
---
# 8. BARITONE AND AUTOMATED SPAWNER MINING DETECTION
Create a dedicated Spawner Mining Detection Engine.
The objective is to identify automated mining behaviour associated with Baritone and similar tools.
## Detection Behaviour
Whenever a player successfully mines a spawner:
1. Record the player UUID.
2. Record the spawner location.
3. Record the event timestamp.
4. Monitor future spawner mining events.
5. Calculate the interval between consecutive successful mining events.
6. Analyse repeated behaviour.
7. Compare available evidence against known automation indicators.
8. Generate violations when sufficient evidence exists.
## Configurable Mining Interval
Default suspicious interval:
5 Minutes = 300 Seconds.
Example:
Spawner 1: 12:00 PM
Spawner 2: 12:04 PM
Time Difference: 4 Minutes.
Status: Suspicious Mining Activity.
IMPORTANT:
Two spawners mined within five minutes are NOT sufficient proof of Baritone usage.
Legitimate players may mine multiple spawners quickly.
The system must combine multiple independent indicators before issuing an automatic punishment.
Do not automatically ban legitimate players simply because they mined two spawners within the configured interval.
## Spawner Detection Requirements
- Minimum spawner count.
- Configurable time interval.
- Repeated behaviour analysis.
- Mining event validation.
- Cancelled-event exclusion.
- Player movement analysis where reliable.
- Client verification evidence.
- Violation tracking.
- Staff alerts.
- Configurable punishment.
## Independent Configuration
Create:
`spawner-mining.yml`
```yaml
spawner-mining:
enabled: true
detection:
minimum-spawners: 2
suspicious-delay-seconds: 300
required-confirmations: 3
violation-threshold: 50
false-positive-protection: true
punishment:
enabled: true
type: TEMPBAN
duration: 30d
messages:
reason: "Automated Mining - Suspicious Activity"
```
All timing and detection parameters must be configurable.
---
# 9. MODULAR DETECTION ARCHITECTURE
Each detection must operate independently.
Create the following modules:
1. Forbidden Mod Detection.
2. Freecam Identification.
3. Baritone Identification.
4. Wurst Client Identification.
5. Meteor Client Identification.
6. Auto Shield Break Detection.
7. Crystal PvP Automation Detection.
8. Anchor PvP Automation Detection.
9. AutoTotem Detection.
10. Automated Spawner Mining Detection.
Each module must support:
- Enable/Disable.
- Independent configuration.
- Violation tracking.
- Evidence collection.
- Punishment configuration.
- Custom messages.
- Staff alerts.
- Debug information.
- False-positive protection.
Disabling one module must never disable another module.
---
# 10. VERIFICATION CACHE SYSTEM
Implement an IP + UUID + Client Session verification cache.
Default cache duration:
60 Seconds.
## Cache Behaviour
When a player successfully completes verification:
- Store player UUID.
- Store network IP association.
- Store verification timestamp.
- Store verified client session.
- Store verification result.
- Set expiration to 60 seconds.
If the same verified player reconnects within 60 seconds:
1. Validate player UUID.
2. Validate session identity.
3. Validate relevant client verification state.
4. Check current ban status.
5. Reuse the valid verification result.
6. Skip the full mod scan.
## Security Requirements
- Same IP must never allow another player to bypass verification.
- Different UUIDs must have separate verification records.
- Expired cache must never be reused.
- Banned players must never bypass punishment.
- Changed client sessions must invalidate relevant cached results.
- Automatically clear expired records.
Create:
`cache.yml`
All cache settings must be configurable.
---
# 11. AUTOMATIC PUNISHMENT ENGINE
Create a centralized punishment management system.
Supported punishment types:
- WARNING
- KICK
- TEMPBAN
- PERMANENT BAN
Default punishment for confirmed forbidden modifications:
30 Days Temporary Ban.
Every detection module must have an independent punishment configuration.
## Requirements
- Custom punishment duration.
- Custom punishment reason.
- Automatic expiration.
- UUID-based punishment records.
- Ban history.
- Duplicate punishment protection.
- Staff notifications.
- Appeal information.
- Manual administrator override.
- Configurable punishment thresholds.
Integrate with compatible existing punishment systems where possible.
Do not create conflicting ban records or duplicate punishments.
If an external punishment plugin is unavailable, use the internal punishment implementation.
---
# 12. STAFF ALERT SYSTEM
Create a professional real-time staff notification system.
Example:
[DAC] SECURITY ALERT
Player: PlayerName
Detection: AutoTotem
Evidence: Repeated suspicious inventory replacement behaviour.
Violation Level: 35
Ping: 65ms
TPS: 19.8
Detection Confidence: High
Provide permissions:
`davilaac.alerts`
Administrators must be able to customize alert formatting and toggle notifications.
---
# 13. ADMIN COMMAND SYSTEM
Implement these commands:
`/dac`
Open the main administration interface.
`/dac reload`
Reload configurations.
`/dac alerts`
Toggle staff alerts.
`/dac info `
Display player security information.
`/dac mods `
Display identified client mods.
`/dac checks`
Display all detection modules.
`/dac violations `
Display violation history.
`/dac history `
Display detection and punishment history.
`/dac bypass `
Manage authorized administrative bypass.
`/dac cache `
Display verification cache information.
`/dac debug `
Display detection diagnostics.
All commands must have proper permission checks and tab completion.
---
# 14. PROFESSIONAL ADMIN GUI
Create a modern, attractive Minecraft administration interface.
Use a consistent inventory layout.
## Main Menu
Include:
1. Detection Modules.
2. Forbidden Mods.
3. AutoTotem Settings.
4. Spawner Mining Settings.
5. Punishment Management.
6. Verification Settings.
7. Loading Screen Settings.
8. Cache Management.
9. Player Information.
10. Detection Logs.
## GUI Features
- Attractive item icons.
- Clear titles.
- Detailed item descriptions.
- Status indicators.
- Enable/Disable controls.
- Easy navigation.
- Confirmation menus.
- Permission protection.
- Back buttons.
- Reload functionality.
The GUI must be functional, not just decorative.
Administrators should be able to modify common configuration values through the interface.
All GUI changes must be validated and safely saved.
---
# 15. COMPLETE CONFIGURATION SYSTEM
Every feature must be customizable.
Nothing important should be unnecessarily hardcoded.
Create an organized configuration directory:
```text
DAVILxAntiCheat/
│
├── config.yml
├── mods.yml
├── autototem.yml
├── spawner-mining.yml
├── punishment.yml
├── verification.yml
├── loading-screen.yml
├── cache.yml
├── messages.yml
├── alerts.yml
├── gui.yml
├── database.yml
│
└── logs/
```
## Global Configuration
Control:
- Plugin enabled/disabled.
- Debug mode.
- Server compatibility.
- Verification timeout.
- Client compatibility.
- Database settings.
- Global detection settings.
## Individual Configuration
Allow administrators to customize:
- Detection enable/disable.
- Detection sensitivity.
- Suspicious timing.
- Minimum evidence samples.
- Violation thresholds.
- Punishment types.
- Ban duration.
- Detection messages.
- Staff alerts.
- False-positive protection.
## Configuration Reliability
- Validate configuration values.
- Provide default values.
- Preserve existing user configurations during updates.
- Never overwrite custom settings unnecessarily.
- Display useful error messages.
- Handle invalid values safely.
- Reload configurations without restarting the server wherever supported.
---
# 16. DATABASE AND LOGGING SYSTEM
Support:
- SQLite by default.
- Optional MySQL.
Store:
- Player UUID.
- Player username.
- Join timestamp.
- Client verification result.
- Identified mod IDs.
- Verification confidence.
- Detection category.
- Violation level.
- Evidence summary.
- Ping and TPS at detection.
- Punishment action.
- Punishment duration.
- Ban expiration.
- Staff actions.
Create searchable detection logs.
Avoid unnecessarily storing sensitive session credentials.
Database operations must not block the Minecraft server main thread.
---
# 17. GEYSER AND FLOODGATE COMPATIBILITY
The primary client-verification system is designed for Java Fabric clients.
If Geyser and Floodgate are installed:
- Identify Bedrock players separately.
- Do not require Fabric verification from Bedrock players.
- Do not classify missing Fabric companion mods as cheating.
- Provide a configurable Bedrock verification policy.
- Avoid applying Java-specific detection assumptions to Bedrock clients.
Maintain compatibility with standard Paper server operations.
---
# 18. SECURITY AND ANTI-BYPASS PROTECTION
Implement:
- Versioned communication protocol.
- Session validation.
- Message validation.
- Replay protection.
- Request timeouts.
- Duplicate request prevention.
- Malformed packet handling.
- Client compatibility checks.
- Secure configuration handling.
- Administrative permission protection.
- Verification failure handling.
The server must remain authoritative for all punishments.
Never allow a client to directly issue a ban or modify its own verification result.
Treat client-side information as evidence that must be validated.
---
# 19. PERFORMANCE OPTIMIZATION
The plugin must be suitable for production SMP servers.
Requirements:
- Low server performance impact.
- Efficient event handling.
- No unnecessary repeating tasks.
- Asynchronous database operations.
- Efficient player data management.
- Automatic cache cleanup.
- Memory-efficient logging.
- Proper shutdown handling.
- Safe concurrent player verification.
- No unnecessary repeated mod scans.
- No excessive packet processing.
Support multiple players joining simultaneously.
---
# 20. TESTING AND QUALITY ASSURANCE
Perform complete testing before release.
## Fabric Verification Tests
- Fabric client without forbidden mods.
- Fabric client with Freecam.
- Fabric client with Baritone.
- Fabric client with Wurst Client.
- Fabric client with Meteor Client.
- Client without companion mod.
- Incompatible companion version.
- Verification timeout.
- Multiple simultaneous joins.
## AutoTotem Tests
- Normal manual Totem replacement.
- Repeated fast replacement.
- High ping.
- Low server TPS.
- Delayed inventory packets.
- Different inventory states.
## Spawner Mining Tests
- Normal spawner mining.
- Multiple legitimate spawner mining events.
- Repeated automated patterns.
- Cancelled mining events.
- Server lag.
- Multiple players mining simultaneously.
## Cache Tests
- Same player reconnecting within 60 seconds.
- Different player sharing the same IP.
- Expired cache.
- Changed client session.
- Banned player reconnecting.
## Punishment Tests
- Warning.
- Kick.
- Temporary ban.
- Permanent ban.
- Ban expiration.
- Custom messages.
- External punishment integration.
All important functionality must be tested before claiming production readiness.
---
# 21. FINAL BUILD OUTPUT
Generate two independent, functional JAR files.
## Paper Plugin
Filename:
`DAVILxAntiCheat-Paper.jar`
Installation:
`/plugins/`
## Fabric Companion Mod
Filename:
`DAVILxAntiCheat-Fabric.jar`
Installation:
`/mods/`
Also provide:
- Complete source code.
- Gradle build files.
- Fabric metadata.
- Paper plugin metadata.
- Default configuration files.
- Database setup.
- Shared protocol documentation.
- Installation instructions.
- Compatibility documentation.
- Testing documentation.
Both JAR files must be independently compiled.
Never report successful compilation without actually building the project.
Never provide an empty, placeholder, or nonfunctional JAR.
---
# 22. DEVELOPMENT WORKFLOW
Follow this development sequence.
### PHASE 1: Architecture
- Inspect the existing project.
- Preserve existing source code.
- Establish the two-project architecture.
- Define the shared communication protocol.
- Verify dependencies.
### PHASE 2: Paper Foundation
- Implement plugin initialization.
- Implement configuration management.
- Implement database.
- Implement player session management.
- Implement verification management.
### PHASE 3: Fabric Foundation
- Create Fabric companion project.
- Implement client initialization.
- Implement networking.
- Implement supported mod identification.
- Implement full-screen verification interface.
### PHASE 4: Detection Modules
- Forbidden mod identification.
- AutoTotem detection.
- Spawner mining detection.
- Evidence collection.
- Violation tracking.
### PHASE 5: Punishment and Administration
- Automatic punishment engine.
- Staff alerts.
- Admin commands.
- Admin GUI.
- Logs and history.
### PHASE 6: Integration
- Connect both components.
- Test the complete verification process.
- Test failure handling.
- Test cache functionality.
- Test punishment synchronization.
### PHASE 7: Final Compilation
- Build Paper independently.
- Build Fabric independently.
- Resolve all compilation errors.
- Run compatibility tests.
- Provide both final JAR files.
Do not skip phases or pretend that unfinished functionality is complete.
---
# 23. FINAL DEVELOPMENT INSTRUCTIONS
The final product must be a complete, professional Minecraft AntiCheat system.
Prioritize:
1. Reliable client verification.
2. Forbidden mod identification.
3. AutoTotem automation detection.
4. Baritone and automated spawner mining detection.
5. Full-screen verification interface.
6. Custom ban disconnect screen.
7. Automatic punishment.
8. Professional administration GUI.
9. Complete configuration customization.
10. Performance and reliability.
Every advertised feature must have a real implementation or be clearly documented as a limitation.
Do not create fake detection checks.
Do not use arbitrary timing values as guaranteed proof of cheating.
Do not automatically ban legitimate players based on incomplete evidence.
Do not sacrifice the existing Paper project to create the Fabric project.
**FINAL GOAL:**
Deliver DAVILxAntiCheat as a production-oriented, independently compiled Paper + Fabric security system, with two compatible JAR files, a complete configuration system, professional UI, reliable detection architecture, and comprehensive administrator controls.
KodariNov 10 at 9:32 am 1
DAVILxAntiCheat
Advanced dual-component Minecraft security system with a Paper server plugin and Fabric client companion. The server plugin manages client verification, forbidden mod detection, AutoTotem and automated spawner mining detection, automatic punishments, staff alerts, admin commands and GUI. The Fabric companion provides client-side mod identification and a full-screen verification loading interface with secure versioned networking protocol. Features configurable detection modules, verification cache system, SQLite/MySQL database, Geyser compatibility, and comprehensive configuration files for production SMP server deployment.
This is a Java server-plugin project, and you asked for separate Paper and Fabric components for Minecraft 1.21.11. Kodari supports Fabric 1.21.11 in a separate project, but can’t build both components together here. Switch to Fabric mod for Minecraft 1.21.11
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code