ayato_off1
๐Ÿ“Ž 1 file 2,412 chars
๐Ÿ“„
pasted-code-1774563219972.txt
txt 39 lines
โ–ถ
Create a detailed plugin idea for a Minecraft Java server plugin called "SC Anti-Cheat". This plugin is designed to protect multiplayer servers from common cheating methods. Here is the full concept:
Plugin Name: SC Anti-Cheat
Platform: Minecraft Java Edition (Spigot/Paper API)
Core Features to detect and flag/punish:

Xray โ€“ Detect abnormal ore mining patterns (too many diamonds/ancient debris found in a short time, unusual mining paths)
Auto Totem โ€“ Detect instant totem swap in inventory when health is critically low (inhuman reaction time under ~100ms)
Kill Aura โ€“ Detect hitting multiple entities at once, abnormal reach distance, clicking while not facing the target, or perfect hit accuracy
Auto Armor โ€“ Detect instant equipping of armor pieces at inhuman speed
Fly Hacks โ€“ Detect players moving vertically without jump mechanics or staying airborne too long without elytra/levitation
Speed Hacks โ€“ Detect players moving faster than their allowed speed based on their current potion effects and game state
Scaffold/Tower โ€“ Detect placing blocks below feet while moving at high speed
NoFall โ€“ Detect taking no fall damage after falling a significant height
Jesus/WaterWalk โ€“ Detect walking on water without frost walker enchantment

Plugin System Design:

A configurable config.yml where admins can enable/disable each check individually and set sensitivity levels (low, medium, high)
A violation point system: each suspicious action adds points; when a threshold is reached, the player is flagged or auto-punished
Punishment options: warn, kick, tempban, ban (configurable per check)
Admin alerts in chat (with permission scanticheat.alerts) showing real-time violation notifications
A /scac command system:

/scac info  โ€“ show a player's current violation points
/scac reset  โ€“ reset a player's violations
/scac reload โ€“ reload config


Logging system: log all violations to a file or database for review
Optional: A lightweight web dashboard or Discord webhook integration to send alerts

Technical notes:

Should be compatible with Paper 1.20+
Use event listeners and scheduled tasks for checks
Minimize false positives with lag compensation (account for TPS drops and player ping)
Lightweight on server performance

Give me a full breakdown of this plugin idea including architecture, class structure suggestions, and which Spigot/Paper API events to use for each cheat detection.
Kodari AI
KodariMar 26 at 10:20 pm 25,756 (v2)

Iโ€™ll create a comprehensive anti-cheat plugin with modular check system, violation tracking, and configurable punishments.

SCAntiCheat
A sophisticated anti-cheat system for Minecraft servers designed to detect and prevent common cheating methods including Xray, Kill Aura, Fly, Speed, Auto Totem, Auto Armor, Scaffold, NoFall, and Jesus hacks. Features configurable sensitivity levels, violation point system, automatic punishments, staff alerts, comprehensive logging, and lag compensation for minimal false positives.

Iโ€™ll create a professional anti-cheat plugin with a modular architecture, comprehensive cheat detection, and minimal false positives.

Created a comprehensive anti-cheat plugin with modular architecture, 9 detection systems, violation tracking, automatic punishments, staff alerts, and comprehensive logging with lag compensation.

Architecture:

  • Managers: Config, Violation, Alert, Punishment, Log, Check

  • Check System: Abstract base class with 9 implementations

  • Data Layer: PlayerData, ViolationData, CheckType enum

  • Commands: /scac info/reset/reload

  • Utils: TPS calculation for lag compensation

Check Implementations:

  1. XrayCheck - Tracks ore mining patterns and ratios

  2. AutoTotemCheck - Detects instant totem swaps (<100ms)

  3. KillAuraCheck - Monitors reach, multi-entity hits, rotation

  4. AutoArmorCheck - Detects rapid armor equipping

  5. FlyCheck - Tracks airborne time and vertical speed

  6. SpeedCheck - Monitors horizontal movement with potion compensation

  7. ScaffoldCheck - Detects rapid block placement while moving

  8. NoFallCheck - Tracks fall damage evasion

  9. JesusCheck - Detects water walking without Frost Walker

Features:

  • Configurable sensitivity per check

  • Violation point system with auto-punishment

  • Staff alerts with sound notifications

  • File logging with timestamps

  • Lag compensation (ignores violations when TPS < 18)

  • Bypass permissions per check

  • Full XSeries integration for cross-version compatibility

ayato_off1

Hey! Can you edit the SC Anti-Cheat plugin and add the following features:

  1. Admin Warn Notification + Teleport:

When a player gets warned, send a notification to all online admins (with permission scanticheat.alerts) showing the warn details, and add a clickable teleport message so admins can instantly teleport to the flagged player.

  1. Xray/Ore Detection Notification + Teleport:

When a player mines a suspicious amount of ores (xray detection), send a real-time alert to admins with the ore type, amount, and location โ€” plus a clickable teleport button in chat to go directly to that player.

  1. Discord Webhook Integration:

Send a detailed Discord webhook message for every action:

โš ๏ธ Warn โ€” player warned ๐Ÿšซ Ban โ€” player banned ๐Ÿ‘ข Kick โ€” player kicked ๐Ÿ” Flag โ€” player flagged/suspected

Each webhook message must include: player name, UUID, action type, reason, cheat detected, violation points, server time, and player ping.

  1. Full Config File:

Add all of these options to the config.yml so admins can:

Enable/disable each feature Set the Discord webhook URL Customize webhook messages Set ore detection thresholds per ore type Toggle teleport buttons in admin alerts

Kodari AI
KodariMar 26 at 10:30 pm 31,518 (v2)

Iโ€™ll read all the existing files first to understand the current structure, then add the requested features.

Now Iโ€™ll add all the requested features. Let me create the Discord webhook manager and update the existing classes.

Now Iโ€™ll create all the necessary files:

All features have been successfully added to the SC Anti-Cheat plugin:

โœ… Admin Warn Notification + Teleport - Admins with scanticheat.alerts permission now receive clickable teleport messages when players are flagged โœ… Xray/Ore Detection Notification + Teleport - Real-time alerts with ore type, amount, location, and teleport button when suspicious mining is detected โœ… Discord Webhook Integration - Full webhook support for Warn, Ban, Kick, Flag, and Xray detection events with detailed player information โœ… Full Config File - Complete configuration with enable/disable toggles, webhook URL, customizable messages, ore thresholds, and teleport options

ayato_off1
๐Ÿ“Ž 1 file 1,424 chars
๐Ÿ“„
pasted-code-1774565934178.txt
txt 21 lines
โ–ถ
Hey! Can you edit the SC Anti-Cheat plugin and add the following new features:
1. Tab-Complete:
Add full tab-complete support for all plugin commands so admins and players get suggestions automatically when typing.
2. Colored Messages with MiniMessage:
Replace all plain text messages in the plugin with MiniMessage format using beautiful HEX colors (red theme) for all plugin messages, alerts, and notifications. Example: <#FF4444>, <#CC0000>, <#FF0000> โ€” make it look clean and professional.
3. MySQL Database:
Add full MySQL database support for the plugin. Store all data in MySQL including:

Player violations and points
Ban/kick/warn history
Xray ore detection logs
All player stats
Add database configuration in config.yml (host, port, database, username, password)

4. AutoClicker Detection:
Add a new cheat detection for AutoClicker โ€” flag players clicking more than 20 CPS as suspicious. Add sensitivity settings in config.
5. /back Command:
Add a /back command that teleports the player to their last death location or last teleport location. If there is no history, send the message:
"No history found: you haven't died or teleported yet"
6. Elytra & Potion False Positive Fix:
Edit the Fly and Speed detection so that players using Elytra or speed/jump potions are never falsely flagged, warned, or banned. The plugin must detect the player's current state and active potion effects before triggering any check.
Kodari AI
KodariMar 26 at 11:08 pm 37,377 (v2)

Iโ€™ll read all the existing files first to understand the current structure, then implement all the requested features.

Iโ€™ll implement all the requested features for the SC Anti-Cheat plugin. Let me start by reading the documentation and then implementing the changes.

Now Iโ€™ll implement all the requested features. This is a comprehensive update with MySQL database, MiniMessage colors, AutoClicker detection, /back command, tab-complete, and false positive fixes.

All features have been successfully implemented:

โœ… Tab-Complete Support - Full auto-completion for /scac commands with player name suggestions
โœ… MiniMessage Colors - Beautiful red gradient theme (#FF0000, #CC0000, #FF4444) for all messages
โœ… MySQL Database - Complete database system storing violations, punishments, xray logs, and player stats
โœ… AutoClicker Detection - Detects players clicking over 20 CPS and consistent clicking patterns
โœ… /back Command - Teleports players to last death/teleport location with proper tracking
โœ… False Positive Fixes - Fly and Speed checks now properly detect Elytra, Jump Boost, Speed potions, and Slow Falling to prevent false flags

The plugin now uses HikariCP for efficient MySQL connection pooling, Adventure API for modern message formatting, and all features are fully integrated with proper permissions and tab completion.

ayato_off1

Hey! Can you edit the SC Anti-Cheat plugin and improve the following detections + add a new command:

  1. Xray Improvement:

Improve the Xray detection to also detect Ancient Debris and Emerald mining patterns โ€” flag players who find unusual amounts in a short time, same system as diamonds.

  1. KillAura โ€” MultiAura Detection:

Improve KillAura detection to also catch MultiAura โ€” players hitting more than one target at the same time or switching between multiple entities within milliseconds.

  1. Speed โ€” IceSpeed Detection:

Improve Speed detection to catch IceSpeed โ€” players moving at impossible speeds while walking on ice blocks, accounting for normal ice acceleration vs hacked speed.

  1. Fly โ€” GlideHack Detection:

Improve Fly detection to catch GlideHack โ€” players simulating elytra gliding movement without actually having elytra equipped.

  1. New Command โ€” /scac test (Admin Only):

Add a new command /scac test for admins only (permission: scanticheat.test).

When an admin runs this command:

Send a fake test alert in chat simulating a real cheat detection message (same format as real alerts) Send a fake test webhook to Discord with all details marked as [TEST] At the end send a confirmation message to the admin: "โœ… Test successful โ€” plugin is working correctly" All test messages must be clearly marked as [TEST] so nobody confuses them with real alerts

Kodari AI
KodariMar 27 at 10:31 am 24,362 (v2)

Iโ€™ll improve those detections and add the test command. Let me first read all relevant files to understand the current implementation.

Now Iโ€™ll implement all the improvements. Let me read a few more files to understand the complete structure:

Perfect! Now Iโ€™ll implement all the improvements:

All improvements have been implemented:

โœ… Xray Detection - Now properly detects Ancient Debris (threshold: 4/min) and Emerald (threshold: 6/min) with dedicated pattern tracking per ore type.

โœ… MultiAura Detection - Tracks entities hit within 500ms window and detects rapid target switching (flags after 3+ different targets in 100ms intervals).

โœ… IceSpeed Detection - Identifies impossible speeds on ice blocks with configurable thresholds, accounting for natural ice acceleration vs hacked movement.

โœ… GlideHack Detection - Catches players simulating elytra glide patterns (fast horizontal + slow descent) without actually having elytra equipped.

โœ… Test Command - /scac test sends fake alerts marked as [TEST] to all staff with alerts permission and Discord webhook, then confirms with โ€œโœ… Test successful โ€” plugin is working correctlyโ€.

ayato_off1

Hey! Can you edit the SC Anti-Cheat plugin and add an Auto Update Checker system:

Update Checker System:

Add a system that automatically checks for new updates by fetching the latest version from the plugin's Modrinth page:

URL: https://modrinth.com/plugin/sc-anticheat How it works:

On server startup, the plugin checks the Modrinth API for the latest version If a new update is found, send a message to all online admins (permission: scanticheat.alerts) in chat showing:

๐Ÿ”” New update available! ๐Ÿ“ฆ Current version they have โœ… New latest version available ๐Ÿ”— Clickable download link to Modrinth page

If no update found, just log in console: "SC Anti-Cheat is up to date"

Check Interval:

Check on startup Check every X minutes (configurable in config.yml)

Config options to add: yamlupdate-checker: enabled: true check-interval-minutes: 60 notify-admins: true modrinth-url: "https://modrinth.com/plugin/sc-anticheat" Use Modrinth API:

Use the official Modrinth API endpoint to get latest version: https://api.modrinth.com/v2/project/sc-anticheat/version

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
33 2,794
src/main/java/com/scanticheat/SCAntiCheat.java
package com.scanticheat;

import com.scanticheat.commands.BackCommand;
import com.scanticheat.commands.SCACCommand;
import com.scanticheat.database.DatabaseManager;
import com.scanticheat.listeners.CheckListener;
import com.scanticheat.managers.*;
import com.scanticheat.utils.TpsUtil;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SCAntiCheat extends JavaPlugin {
    
    private ConfigManager configManager;
    private DatabaseManager databaseManager;
    private ViolationManager violationManager;
    private AlertManager alertManager;
    private PunishmentManager punishmentManager;
    private LogManager logManager;
    private CheckManager checkManager;
    private DiscordWebhookManager discordWebhookManager;
    private BackManager backManager;
    private TpsUtil tpsUtil;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.databaseManager = new DatabaseManager(this);
        this.violationManager = new ViolationManager(this);
        this.alertManager = new AlertManager(this);
        this.punishmentManager = new PunishmentManager(this);
        this.logManager = new LogManager(this);
        this.discordWebhookManager = new DiscordWebhookManager(this);
        this.backManager = new BackManager(this);
        this.tpsUtil = new TpsUtil(this);
        this.checkManager = new CheckManager(this);
        
        SCACCommand scacCommand = new SCACCommand(this);
        getCommand("scac").setExecutor(scacCommand);
        getCommand("scac").setTabCompleter(scacCommand);
        
        getCommand("back").setExecutor(new BackCommand(this));
        
        Bukkit.getPluginManager().registerEvents(new CheckListener(this), this);
        Bukkit.getPluginManager().registerEvents(backManager, this);
        
        getLogger().info("SCAntiCheat has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (this.logManager != null) {
            this.logManager.close();
        }
        
        if (this.databaseManager != null) {
            this.databaseManager.close();
        }
        
        getLogger().info("SCAntiCheat has been disabled!");
    }
}