kosiarawtff
๐Ÿ“Ž 1 file 3,216 chars
๐Ÿ“„
pasted-code-1782610249056.txt
txt 140 lines
โ–ถ
Create a Minecraft anti-cheat/security plugin for **PaperSpigot 1.21.1 using Java 21**.

The plugin should prevent hacked clients, cheats, and unfair modifications from working on the server. It should not only detect cheats but actively block their effects.

Required features:

1. **Anti Cheat Client Protection**

* Prevent common hacked client features from working:

  * KillAura
  * Reach
  * WallHit
  * AutoClicker
  * AimAssist
  * Velocity / AntiKnockback
  * NoSlow
  * Spider
  * Fly
  * BoatFly
  * Jesus
  * Timer
  * FastPlace
  * FastBreak
  * X-Ray
  * ESP
  * Health ESP
* Do not rely only on client detection.
* Block the results of cheats using server-side checks.
* Make hacked clients behave like vanilla Minecraft.

2. **Anti Wall Hit / Anti Reach Through Walls**

* Players cannot hit entities through blocks.
* Check real line of sight.
* Cancel impossible attacks from modified clients.

3. **Anti Block Placement Through Walls**

* Stop placing blocks through walls.
* Verify player position, rotation, and reach distance.

4. **Anti Knockback / Velocity Cheats**

* Detect players ignoring knockback.
* Force correct vanilla movement.
* Prevent Velocity and AntiKB modifications from giving an advantage.

5. **Ender Pearl Protection**

* Fix ender pearls stopping inside blocks.
* Prevent pearl abuse through walls.
* Make pearl teleportation follow vanilla rules.

6. **Anti Cobweb / NoSlow**

* Prevent hacked clients from removing cobweb slowdown.
* Detect abnormal movement inside webs.

7. **Anti X-Ray**

* Add ore protection.
* Hide ores from suspicious clients.
* Detect unnatural mining patterns.
* Prevent X-Ray users from finding hidden ores.

8. **Anti KillAura**

* Detect impossible rotations, attack timing, and targeting.
* Cancel suspicious hits.
* Add combat setbacks.
* Make aura users miss attacks.

9. **Anti BoatFly**

* Prevent flying boats and abnormal boat movement.
* Cancel illegal vehicle movement packets.

10. **Anti ESP / Health ESP**

* Prevent hacked clients from getting extra player information.
* Hide enemy health data from modified clients.
* Protect packets where possible.

11. **Violation System**

* Each cheat detection increases violations.
* Configurable actions:

  * Cancel action
  * Reduce cheat effectiveness
  * Alert staff
  * Kick
  * Temporary ban

12. **Commands**
    Add:

* /anticheat reload
* /anticheat alerts
* /anticheat info 

Permissions:

* anticheat.admin
* anticheat.alerts

13. **Configuration**
    Create:

* config.yml
* messages.yml

Allow changing:

* detection sensitivity
* punishments
* alerts
* debug mode

14. **Performance**

* Optimized for Paper 1.21.1.
* Java 21.
* No lag.
* Async calculations where possible.
* Suitable for large PvP servers.

15. **Project Output**
    Provide:

* Complete Java source code
* Maven/Gradle project
* plugin.yml
* config.yml
* All classes separated properly
* Ready-to-build .jar plugin

The goal is to create a strong server-side anti-cheat that makes hacked clients useless and keeps gameplay close to vanilla Minecraft.
kosiarawtff
๐Ÿ“Ž 1 file 3,216 chars
๐Ÿ“„
pasted-code-1782610267413.txt
txt 140 lines
โ–ถ
Create a Minecraft anti-cheat/security plugin for **PaperSpigot 1.21.1 using Java 21**.

The plugin should prevent hacked clients, cheats, and unfair modifications from working on the server. It should not only detect cheats but actively block their effects.

Required features:

1. **Anti Cheat Client Protection**

* Prevent common hacked client features from working:

  * KillAura
  * Reach
  * WallHit
  * AutoClicker
  * AimAssist
  * Velocity / AntiKnockback
  * NoSlow
  * Spider
  * Fly
  * BoatFly
  * Jesus
  * Timer
  * FastPlace
  * FastBreak
  * X-Ray
  * ESP
  * Health ESP
* Do not rely only on client detection.
* Block the results of cheats using server-side checks.
* Make hacked clients behave like vanilla Minecraft.

2. **Anti Wall Hit / Anti Reach Through Walls**

* Players cannot hit entities through blocks.
* Check real line of sight.
* Cancel impossible attacks from modified clients.

3. **Anti Block Placement Through Walls**

* Stop placing blocks through walls.
* Verify player position, rotation, and reach distance.

4. **Anti Knockback / Velocity Cheats**

* Detect players ignoring knockback.
* Force correct vanilla movement.
* Prevent Velocity and AntiKB modifications from giving an advantage.

5. **Ender Pearl Protection**

* Fix ender pearls stopping inside blocks.
* Prevent pearl abuse through walls.
* Make pearl teleportation follow vanilla rules.

6. **Anti Cobweb / NoSlow**

* Prevent hacked clients from removing cobweb slowdown.
* Detect abnormal movement inside webs.

7. **Anti X-Ray**

* Add ore protection.
* Hide ores from suspicious clients.
* Detect unnatural mining patterns.
* Prevent X-Ray users from finding hidden ores.

8. **Anti KillAura**

* Detect impossible rotations, attack timing, and targeting.
* Cancel suspicious hits.
* Add combat setbacks.
* Make aura users miss attacks.

9. **Anti BoatFly**

* Prevent flying boats and abnormal boat movement.
* Cancel illegal vehicle movement packets.

10. **Anti ESP / Health ESP**

* Prevent hacked clients from getting extra player information.
* Hide enemy health data from modified clients.
* Protect packets where possible.

11. **Violation System**

* Each cheat detection increases violations.
* Configurable actions:

  * Cancel action
  * Reduce cheat effectiveness
  * Alert staff
  * Kick
  * Temporary ban

12. **Commands**
    Add:

* /anticheat reload
* /anticheat alerts
* /anticheat info 

Permissions:

* anticheat.admin
* anticheat.alerts

13. **Configuration**
    Create:

* config.yml
* messages.yml

Allow changing:

* detection sensitivity
* punishments
* alerts
* debug mode

14. **Performance**

* Optimized for Paper 1.21.1.
* Java 21.
* No lag.
* Async calculations where possible.
* Suitable for large PvP servers.

15. **Project Output**
    Provide:

* Complete Java source code
* Maven/Gradle project
* plugin.yml
* config.yml
* All classes separated properly
* Ready-to-build .jar plugin

The goal is to create a strong server-side anti-cheat that makes hacked clients useless and keeps gameplay close to vanilla Minecraft.
Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code