azaanpapa804-sketch

Create a Minecraft server anti-cheat plugin named “Azaan’sAnticheat”, inspired by Vulkan, with advanced detection for hacked clients. The plugin should specifically prevent players from using clients such as Metore Client and Doomsday, along with any other known cheat clients.

Features:

Client & Hack Detection Detect usage of Metore Client, Doomsday Client, and other common hacked clients.

If a client or hack is detected:

Automatically kick the player 3 times.

On the third offense, ban the player permanently.

Display a custom, visually appealing ban message when banning a player.

Server Compatibility Must work on Paper/Spigot 1.19+ servers.

Lightweight and optimized to avoid lag.

Optional Enhancements Log all detected clients and player offenses in a server log.

Provide configurable kick and ban messages in config.yml.

Include alerts for admins when a cheat client is detected.

Ability to update client detection via config or plugin updates.

Security & Reliability Must prevent bypass methods of known clients.

Ensure players cannot spoof detection or exploit plugin mechanics.

Commands (Optional):

/azaankick <player> – Kick a player manually. /azaanban <player> – Ban a player manually. /azaanstats <player> – View number of kicks/bans for a player.

Configuration (config.yml)

List of banned clients Kick threshold before ban (default: 3) Custom ban message with formatting Admin alert toggle

Kodari AI
KodariMar 24 at 7:35 am 13,482 (v2)

I’ll create an advanced anti-cheat plugin with client detection, violation tracking, and automated enforcement. This will include a robust framework for detecting suspicious clients and managing player violations.

AzaanAnticheat
Advanced anti-cheat plugin with client brand detection, violation tracking, and automated enforcement system. Features configurable kick/ban thresholds, admin alerts, comprehensive logging, and manual moderation commands. Monitors player clients and behavior patterns to identify hacked clients like Metore and Doomsday, with customizable ban messages and detection rules.

Created a comprehensive anti-cheat plugin with advanced client detection, violation tracking, automated enforcement, admin alerts, logging system, and manual moderation commands. The plugin monitors client brands through plugin messaging channels and automatically kicks/bans players using hacked clients like Metore and Doomsday after the configured threshold.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
16 870
src/main/java/com/azaan/anticheat/AzaanAnticheat.java
package com.azaan.anticheat;

import com.azaan.anticheat.command.AzaanBanCommand;
import com.azaan.anticheat.command.AzaanKickCommand;
import com.azaan.anticheat.command.AzaanStatsCommand;
import com.azaan.anticheat.listener.ClientBrandListener;
import com.azaan.anticheat.listener.JoinListener;
import com.azaan.anticheat.manager.ClientDetectionManager;
import com.azaan.anticheat.manager.ConfigManager;
import com.azaan.anticheat.manager.LogManager;
import com.azaan.anticheat.manager.ViolationManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class AzaanAnticheat extends JavaPlugin {
    
    private ConfigManager configManager;
    private ViolationManager violationManager;
    private ClientDetectionManager clientDetectionManager;
    private LogManager logManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.logManager = new LogManager(this);
        this.violationManager = new ViolationManager(this);
        this.clientDetectionManager = new ClientDetectionManager(this);
        
        registerCommands();
        registerListeners();
        registerChannels();
        
        getLogger().info("Azaan's Anticheat has been enabled!");
        getLogger().info("Monitoring " + configManager.getBannedClients().size() + " client signatures.");
    }
    
    @Override
    public void onDisable() {
        if (logManager != null) {
            logManager.flush();
        }
        getLogger().info("Azaan's Anticheat has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("azaankick").setExecutor(new AzaanKickCommand(this));
        getCommand("azaanban").setExecutor(new AzaanBanCommand(this));
        getCommand("azaanstats").setExecutor(new AzaanStatsCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new JoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new ClientBrandListener(this), this);
    }
    
    private void registerChannels() {
        Bukkit.getMessenger().registerIncomingPluginChannel(this, "minecraft:brand", new ClientBrandListener(this));
        Bukkit.getMessenger().registerIncomingPluginChannel(this, "MC|Brand", new ClientBrandListener(this));
    }
}