faiwi2_37335

Entwickle ein Anti-Cheat-Plugin, das X-Ray-Detection für die Wurst- und Meorklt-Clients implementiert und fortschrittliche Ban-Funktionen bietet. Integriere ein Meldesystem, das zuerst das Team per Nachricht informiert, gefolgt von einem Kick und einem temporären Bann, sowie die Möglichkeit für Spieler, über einen Discord-Link einen Entbannungsantrag zu stellen. Implementiere außerdem einen Chatfilter zur Erkennung von Beleidigungen und stelle sicher, dass legitime Spielmechaniken wie Speed, /fly und Elytra nicht fälschlicherweise als Hacks erkannt werden. das system heist CCGurad

Kodari AI
KodariApr 4 at 1:22 pm 14,605 (v2)

I’ll create an advanced anti-cheat plugin with X-Ray detection, progressive punishments, and chat filtering while avoiding false positives.

CCGuard
An advanced anti-cheat system with X-Ray detection, progressive punishment system, and chat filtering. Detects suspicious mining patterns and client modifications while avoiding false positives from legitimate mechanics (Speed effects, /fly command, Elytra). Features automated violation tracking with escalating consequences: staff alerts, kicks, and temporary bans. Includes chat filter for inappropriate language and Discord integration for unban appeals.

All files created. CCGuard is now a complete anti-cheat system with X-Ray detection based on ore-to-block ratios, progressive punishments (alerts → kicks → temp bans), chat filtering for inappropriate language, player reporting system with cooldowns, and Discord integration for unban appeals. The system avoids false positives by ignoring creative/spectator modes and respecting bypass permissions.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
18 1,157
src/main/java/de/ccguard/CCGuard.java
package de.ccguard;

import de.ccguard.commands.CCGuardCommand;
import de.ccguard.commands.ReportCommand;
import de.ccguard.listeners.BlockBreakListener;
import de.ccguard.listeners.ChatListener;
import de.ccguard.listeners.PlayerListener;
import de.ccguard.managers.*;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class CCGuard extends JavaPlugin {

    private ConfigManager configManager;
    private DataManager dataManager;
    private XRayDetectionManager xRayDetectionManager;
    private BanManager banManager;
    private ChatFilterManager chatFilterManager;
    private ReportManager reportManager;
    private AlertManager alertManager;

    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.dataManager = new DataManager(this);
        this.alertManager = new AlertManager(this);
        this.banManager = new BanManager(this);
        this.xRayDetectionManager = new XRayDetectionManager(this);
        this.chatFilterManager = new ChatFilterManager(this);
        this.reportManager = new ReportManager(this);

        configManager.loadConfig();
        dataManager.loadAll();

        registerCommands();
        registerListeners();

        getLogger().info("CCGuard has been enabled!");
    }

    @Override
    public void onDisable() {
        if (dataManager != null) {
            dataManager.saveAll();
        }
        getLogger().info("CCGuard has been disabled!");
    }

    private void registerCommands() {
        getCommand("ccguard").setExecutor(new CCGuardCommand(this));
        getCommand("report").setExecutor(new ReportCommand(this));
    }

    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
        getServer().getPluginManager().registerEvents(new BlockBreakListener(this), this);
        getServer().getPluginManager().registerEvents(new ChatListener(this), this);
    }
}