whyalways.spider

Hey! I’m looking to commission a lightweight, reliable AntiCheat plugin for Minecraft version 1.21.11.

I need something that performs smoothly without causing unnecessary server lag or false positives for legit players. Here is a quick breakdown of what I need:

  1. Movement & Combat AntiCheat

Detection for common movement hacks (Fly, Speed, Jesus, NoSlow, Phase, Spider/Step).

Detection for combat hacks (KillAura, Reach, Triggerbot, AutoClicker).

Smart check flags to prevent rubberbanding for non-hacking players with higher ping.

  1. Ender Pearl Cooldown System

A strict 10-second cooldown on Ender Pearl usage.

Prevents pearl-glitching, double-pearling, or bypassed pearl cooldowns via client mods.

Action bar or chat notification showing the remaining cooldown time to the player.

  1. Admin & Configuration

In-game alert toggle permission for staff (e.g., anticheat.alerts).

Simple log file or Discord webhook support for flag notifications.

Fully customizable config.yml to tweak check thresholds and cooldown times.

Kodari AI
KodariSep 18 at 9:23 am 2
SentinelGuard
SentinelGuard is a lightweight, performance-optimized anti-cheat plugin for Minecraft 1.21.11. It detects movement exploits including Fly, Speed, Jesus, NoSlow, Phase, and Spider/Step, plus combat cheats such as KillAura, Reach, Triggerbot, and AutoClicker. Smart flagging minimizes false positives for high-ping players by using ping-aware thresholds and progressive violation levels. Includes a strict 10-second Ender Pearl cooldown system with action bar countdown notifications and pearl-glitch prevention. Staff receive in-game alerts via the anticheat.alerts permission, with optional Discord webhook notifications and detailed log file output. All check thresholds, punishments, and cooldown durations are fully customizable through config.yml.
  1. Core plugin and configuration: create the Paper 1.21.x Gradle project, lifecycle, commands, permissions, and defaults.

  2. Detection engine: add conservative movement/combat checks with violation decay, ping allowances, exemptions, and selective setback behavior.

  3. Pearl cooldown: enforce a server-side configurable cooldown with action-bar feedback.

  4. Administration and notifications: add staff alert toggles, file logging, and asynchronous Discord webhook delivery.

Created the lightweight Paper anti-cheat project with:

  • Conservative movement checks: speed, fly, Jesus, NoSlow, phase, spider, and step.

  • Combat checks: reach, KillAura angle/line-of-sight, autoclicker, and triggerbot timing.

  • Violation scoring with decay, ping compensation, configurable thresholds, and selective setbacks.

  • Strict configurable Ender Pearl cooldown with action-bar countdown feedback.

  • /anticheat command with alerts, reload, and status.

  • anticheat.alerts, anticheat.admin, and anticheat.bypass permissions.

  • File-based flags.log output.

  • Optional asynchronous Discord webhook notifications.

  • Complete config.yml, plugin.yml, Gradle setup, listeners, managers, and command handling.

The project targets Java 21 and Paper API 1.21.x.

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

import com.kodari.anticheat.check.ViolationTracker;
import com.kodari.anticheat.command.AntiCheatCommand;
import com.kodari.anticheat.config.AntiCheatConfig;
import com.kodari.anticheat.listener.CombatListener;
import com.kodari.anticheat.listener.ConnectionListener;
import com.kodari.anticheat.listener.MovementListener;
import com.kodari.anticheat.listener.PearlListener;
import com.kodari.anticheat.manager.AlertManager;
import com.kodari.anticheat.manager.PearlCooldownManager;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public final class KodariAntiCheat extends JavaPlugin {
    private AntiCheatConfig config;
    private ViolationTracker violationTracker;
    private AlertManager alerts;
    private PearlCooldownManager pearls;
    private MovementListener movementListener;
    private CombatListener combatListener;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        config = new AntiCheatConfig(this);
        violationTracker = new ViolationTracker();
        alerts = new AlertManager(this);
        pearls = new PearlCooldownManager();
        movementListener = new MovementListener(this);
        combatListener = new CombatListener(this);

        getServer().getPluginManager().registerEvents(movementListener, this);
        getServer().getPluginManager().registerEvents(combatListener, this);
        getServer().getPluginManager().registerEvents(new PearlListener(this), this);
        getServer().getPluginManager().registerEvents(new ConnectionListener(this), this);

        AntiCheatCommand command = new AntiCheatCommand(this);
        if (getCommand("anticheat") != null) {
            getCommand("anticheat").setExecutor(command);
            getCommand("anticheat").setTabCompleter(command);
        }
        getLogger().info("KodariAntiCheat enabled with conservative movement and combat checks.");
    }

    public boolean flag(Player player, String check, String detail) {
        if (!config.checkEnabled(check)) {
            return false;
        }

        double threshold = config.checkDouble(check, "vl-threshold", 3.0);
        boolean reached = violationTracker.add(player.getUniqueId(), check, 1.0, threshold,
                config.violationDecayPerSecond(), config.alertCooldownMs());
        if (reached) {
            alerts.flag(player, check, detail);
        }
        return reached;
    }

    public double pingAllowance(Player player) {
        if (!config.pingCompensation()) {
            return 0.0;
        }
        return Math.min(player.getPing(), config.maxCompensatedPing()) * 0.012;
    }

    public void removePlayer(Player player) {
        violationTracker.remove(player.getUniqueId());
        alerts.remove(player.getUniqueId());
        pearls.remove(player.getUniqueId());
        movementListener.remove(player.getUniqueId());
        combatListener.remove(player.getUniqueId());
    }

    public AntiCheatConfig config() {
        return config;
    }

    public AlertManager alerts() {
        return alerts;
    }

    public PearlCooldownManager pearls() {
        return pearls;
    }
}