mapicccccc

Create me my own anti cheat

Kodari AI
KodariOct 11 at 6:12 am 1
AntiCheatGuard
AntiCheatGuard is a comprehensive Minecraft Bukkit/Spigot plugin that detects and prevents common cheating behaviors. It monitors player movement patterns, speed anomalies, flight without permission, teleport hacks, and impossible jump heights. The plugin implements a multi-strike warning system with configurable punishment actions including warnings, kicks, and temporary bans. It features an in-game command interface for administrators to manage cheat detection settings, view violation logs, and whitelist trusted players. The system uses adaptive threshold calibration to reduce false positives while maintaining robust protection against speed hacks, fly hacks, and clipping exploits. All detection events are logged with timestamps and player coordinates for evidence tracking.
  1. Create a Paper plugin scaffold and configurable checks.

  2. Add movement speed, hovering-flight, and entity-reach detection with staff alerts.

  3. Add /anticheat reload; violations only alert staff—no automatic punishment.

Created KodariAntiCheat with configurable speed, hovering-flight, and reach checks, staff alerts, bypass permissions, and /anticheat reload. It reports violations but does not automatically punish players.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
7 256
src/main/java/com/kodari/anticheat/KodariAntiCheat.java
package com.kodari.anticheat;

import org.bukkit.ChatColor;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public class KodariAntiCheat extends JavaPlugin {

    @Override
    public void onEnable() {
        saveDefaultConfig();
        getServer().getPluginManager().registerEvents(new AntiCheatListener(this), this);

        PluginCommand command = getCommand("anticheat");
        if (command != null) {
            command.setExecutor(new AntiCheatCommand(this));
        }
    }

    public void alert(String playerName, String check, int violations, String details) {
        String message = getConfig().getString("alerts.format", "&c%player% flagged %check% (VL %vl%) %details%")
                .replace("%player%", playerName)
                .replace("%check%", check)
                .replace("%vl%", Integer.toString(violations))
                .replace("%details%", details);
        String coloredMessage = ChatColor.translateAlternateColorCodes('&', message);

        getLogger().warning(ChatColor.stripColor(coloredMessage));
        getServer().getOnlinePlayers().stream()
                .filter(player -> player.hasPermission("kodariac.alerts"))
                .forEach(player -> player.sendMessage(coloredMessage));
    }
}