S
📎 1 file 2,855 chars
📄
pasted-code-1773448602075.txt
txt 179 lines
▶
Full Minecraft Plugin Development Prompt – SentinelAI Anti-Cheat

I want a professional Minecraft plugin called SentinelAI Anti-Cheat for a Paper/Spigot server. The plugin must detect cheating using movement and combat analysis and send automatic reports to my Discord server using webhook embed messages.

Server Environment

Platform: Paper / Spigot

Minecraft Version: 1.20+

Programming Language: Java

Plugin Type: Anti-Cheat

Goal: Detect hackers automatically and report them to Discord.

Discord Integration

The plugin must send detection reports to Discord using the following webhook:

https://discord.com/api/webhooks/1482167417424711917/WdHWriHjKDxea0yF8mAUS38RJakX8RgrG8uTG_0EAPQ6q7ZcunCrU5RF9MhzNkMbjv38

Reports must use Discord embed messages and include:

Player Name

Detected Cheat

Violation Level

Player Ping

Player World

Action Taken (Flagged / Kick / Ban)

Detection Time

Example embed title:
SentinelAI Cheat Detection

Embed color: Red.

Movement Cheat Detection

The plugin must detect movement cheats including:

Speed hacks

Fly hacks

Jesus (walking on water)

NoFall

Timer hacks

Step hacks

Movement should be analyzed using player movement per tick and velocity.

Combat Cheat Detection

The plugin must detect combat cheats including:

KillAura

Reach

AutoClicker

AimAssist

Criticals hacks

The plugin should track:

Clicks per second (CPS)

Hit distance

Player rotation accuracy

Attack timing

Violation Level System

Every detection should increase a Violation Level (VL).

Example:
Small cheat detection → +5 VL
Medium cheat detection → +10 VL
Severe cheat detection → +20 VL

Actions based on VL:

VL 10 → Send Discord alert
VL 20 → Staff warning
VL 30 → Temporary ban
VL 40 → Permanent ban

Cheat-Based Ban Times

Different cheats must apply different ban durations:

AutoTotem → 5 minutes
AutoClicker → 10 minutes
Speed → 15 minutes
Fly → 30 minutes
Reach → 1 hour
KillAura → 6 hours
Multiple cheats → Permanent ban

Commands

The plugin must include admin commands:

/sentinel reload
/sentinel info
/sentinel history
/sentinel alerts

Permissions

sentinel.admin
sentinel.alerts
sentinel.bypass

Config File

The plugin must generate a config.yml including:

Discord webhook

Ban durations

Enabled cheat checks

Violation level limits

Plugin Structure

SentinelAI/

SentinelAI.java (Main plugin class)

checks/
SpeedCheck.java
FlyCheck.java
ReachCheck.java
KillAuraCheck.java
AutoClickerCheck.java

discord/
DiscordWebhook.java

ai/
MovementAnalyzer.java
CombatAnalyzer.java

playerdata/
PlayerProfile.java

utils/
MathUtils.java

Performance

The plugin must be optimized and safe for large servers.

Checks must be lightweight

No server lag

Efficient event handling

Goal

Create a professional anti-cheat plugin with automated detection and Discord reporting suitable for public Minecraft servers.
Kodari AI
KodariMar 14 at 12:43 am 23,467 (v2)

I’ll create a comprehensive SentinelAI Anti-Cheat plugin with movement/combat detection, violation levels, and Discord webhook integration.

SentinelAI
Advanced anti-cheat system with automated movement and combat analysis. Features real-time cheat detection for Speed, Fly, Reach, KillAura, and AutoClicker hacks. Implements a violation level system with escalating punishments and sends detailed detection reports to Discord via webhook embeds. Includes admin commands for monitoring, configurable thresholds, and cheat-specific ban durations optimized for server performance.

Now I’ll create the complete plugin structure:

All files created successfully! The SentinelAI anti-cheat plugin is now complete with:

✅ Movement detection (Speed, Fly, Jesus, NoFall, Timer) ✅ Combat detection (KillAura, Reach, AutoClicker, Criticals) ✅ Discord webhook integration with embed messages ✅ Violation level system with escalating punishments ✅ Cheat-specific ban durations ✅ Admin commands (/sentinel reload, info, history, alerts) ✅ Automatic violation decay system ✅ Performance-optimized event handling ✅ Complete configuration system

The plugin automatically sends detection reports to your Discord webhook with player name, cheat type, VL, ping, world, action taken, and timestamp.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
19 1,343
src/main/java/com/sentinelai/SentinelAI.java
package com.sentinelai;

import com.sentinelai.checks.*;
import com.sentinelai.commands.SentinelCommand;
import com.sentinelai.config.ConfigManager;
import com.sentinelai.discord.DiscordWebhook;
import com.sentinelai.listeners.PlayerListener;
import com.sentinelai.managers.PlayerDataManager;
import com.sentinelai.managers.ViolationManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SentinelAI extends JavaPlugin {

    private ConfigManager configManager;
    private PlayerDataManager playerDataManager;
    private ViolationManager violationManager;
    private DiscordWebhook discordWebhook;

    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.playerDataManager = new PlayerDataManager();
        this.discordWebhook = new DiscordWebhook(this);
        this.violationManager = new ViolationManager(this);

        registerCommands();
        registerListeners();
        startViolationDecayTask();

        getLogger().info("SentinelAI Anti-Cheat has been enabled!");
        getLogger().info("Discord webhook: " + (configManager.getWebhookUrl().isEmpty() ? "Not configured" : "Configured"));
    }

    @Override
    public void onDisable() {
        playerDataManager.getAllProfiles().clear();
        getLogger().info("SentinelAI Anti-Cheat has been disabled!");
    }

    private void registerCommands() {
        getCommand("sentinel").setExecutor(new SentinelCommand(this));
    }

    private void registerListeners() {
        PluginManager pm = Bukkit.getPluginManager();
        pm.registerEvents(new PlayerListener(this), this);
        pm.registerEvents(new SpeedCheck(this), this);
        pm.registerEvents(new FlyCheck(this), this);
        pm.registerEvents(new ReachCheck(this), this);
        pm.registerEvents(new KillAuraCheck(this), this);
        pm.registerEvents(new AutoClickerCheck(this), this);
    }

    private void startViolationDecayTask() {
        if (!configManager.isViolationDecayEnabled()) {
            return;
        }

        int decayInterval = configManager.getDecayInterval();
        int decayAmount = configManager.getDecayAmount();

        Bukkit.getScheduler().runTaskTimer(this, () -> {
            playerDataManager.getAllProfiles().values().forEach(profile -> {
                if (profile.getViolationLevel() > 0) {
                    profile.decreaseViolation(decayAmount);
                }
            });
        }, decayInterval * 20L, decayInterval * 20L);
    }
}