vel.taitcloud

AuraProtect — Advanced Anti-Cheat & Moderation System

Plugin Name: AuraProtect Platform: Paper 26.2 Language: Java Permissions: LuckPerms integration Category: Anti-Cheat, Cheat-Mod Detection, Moderation & Server Administration

  1. Project Overview

Develop AuraProtect, a professional, strict, performance-optimized Minecraft server protection plugin inspired by Vulcan Anti-Cheat.

AuraProtect must combine advanced server-side cheat detection, moderation commands, automated warnings, staff alerts, OP protection, and a customizable announcement system in one plugin.

Do not deliver pseudocode, empty command handlers, or fake detection features. Implement functional features, document technical limitations, and ensure the project builds successfully.

  1. Announcement System

Implement:

  • "/announce <message>" — Broadcast an announcement to every online player.
  • Permission: "auraprotect.announce"
  • Integrate permissions with LuckPerms.
  • Support MiniMessage formatting, colors, configurable prefixes, and multiple lines where practical.
  • Support console execution.
  • Ensure unauthorized ranks cannot execute the command.

Example:

"/announce AuraVerseMC maintenance begins in 10 minutes!"

  1. Complete Moderation System

Implement these commands:

  • "/warn <player> <reason>"
  • "/kick <player> <reason>"
  • "/ban <player> <reason>"
  • "/tempban <player> <duration> <reason>"
  • "/unban <player>"
  • "/mute <player> <duration> <reason>"
  • "/unmute <player>"
  • "/freeze <player>"
  • "/unfreeze <player>"
  • "/staffchat <message>"
  • "/history <player>"
  • "/check <player>"
  • "/report <player> <reason>"

Requirements:

  • Individual LuckPerms permissions for each command.
  • Persistent punishment history using SQLite.
  • Configurable messages, durations, and reason formats.
  • Staff notifications and audit logs.
  • Safe offline-player handling.
  • Configurable punishment escalation.
  • Protection against unauthorized punishment and command abuse.
  • Configurable exemptions for legitimate administrative actions.
  1. Advanced Anti-Cheat Detection

Create a modular detection engine inspired by professional anti-cheat systems.

Implement checks for:

Combat

  • KillAura
  • Reach anomalies
  • Aim assistance indicators
  • Auto-clicking
  • Abnormal attack patterns
  • Suspicious combat rotations

Movement

  • Fly
  • Speed
  • NoFall
  • Invalid movement
  • Timer manipulation
  • Impossible movement patterns
  • Abnormal acceleration

World interaction

  • Scaffold
  • Suspicious block placement
  • Inventory exploits
  • Invalid packets
  • Protocol anomalies
  • Abnormal interaction patterns

Each check must have independent configuration, violation levels, confidence thresholds, and enable/disable options.

Account for latency, server TPS, Minecraft version differences, legitimate gameplay mechanics, and false positives.

Do not automatically punish players based on one unreliable signal.

  1. Cheat-Mod Detection

Create a detection framework for prohibited client modifications and unfair gameplay advantages.

Target categories:

  • Freecam
  • X-ray
  • Unfair radar or minimap advantages
  • Xaero-related prohibited features
  • Baritone and automated pathfinding
  • Combat cheats
  • Movement cheats
  • Unauthorized automation
  • Other detectable exploit behavior

Strict limitations

Minecraft servers cannot reliably identify every installed client-side mod. Detection must rely on verifiable behavior, supported protocol evidence, or reliable server-side checks.

Do not falsely claim that AuraProtect can identify every cheat client or mod by name.

Do not punish legitimate Xaero Minimap usage merely because the mod is installed.

  1. Flashback Detection

Include a dedicated Flashback-related detection module.

Requirements:

  • Investigate detectable behavior associated with replay, camera, or spectator-like functionality.
  • Detect unauthorized access to gameplay information only where server-side evidence supports the conclusion.
  • Record suspicious behavior and notify authorized staff.
  • Integrate verified violations with the warning system.
  • Support configurable check sensitivity and exemptions.

Do not claim to detect Flashback's installation when the server has no reliable evidence of it. Legitimate replay or camera functionality must not automatically result in punishment.

  1. Three-Warning Punishment System

Default configurable escalation:

  1. Warning 1: Notify the player and alert staff.
  2. Warning 2: Increase monitoring and record additional evidence.
  3. Warning 3: Automatically kick the player when the violation is reliably confirmed.

For repeated or severe violations, allow configurable temporary bans or staff review.

Additional requirements:

  • Track violations separately for each check.
  • Maintain player UUIDs and persistent records.
  • Configure violation decay and reset periods.
  • Store timestamps, ping, TPS, detection type, and available evidence.
  • Provide staff review, violation reset, and appeal support.
  • Avoid automatic permanent bans from uncertain detections.
  • Prevent one false-positive event from generating three duplicate warnings.
  1. OP & Administrator Bypass Protection

Critical requirement: OP status must not automatically bypass AuraProtect.

  • OPs, administrators, moderators, and developers remain monitored by default.
  • Wildcard permissions and "auraprotect.admin" must not automatically grant anti-cheat immunity.
  • Use a separate, explicitly assigned permission: "auraprotect.bypass".
  • Support individual check exemptions rather than requiring a blanket bypass.
  • Continue recording detections for exempt players.
  • Log bypass changes, permission changes, and staff actions.
  • Require appropriate authorization for exemption commands.
  • Never allow ordinary players to grant themselves bypass permissions.
  • Provide configurable policies for whether bypassed detections trigger alerts or punishments.

Commands:

  • "/ac bypass <player> <check> <on/off>"
  • "/ac alerts"
  • "/ac check <player>"
  • "/ac history <player>"
  • "/ac verbose"
  • "/ac reload"

The bypass command must use granular permissions and create audit logs.

Acceptance test: An OP using a detectable cheat must trigger the same detection checks as a normal player unless an explicit, documented exemption applies.

  1. Staff Alerts & Investigation

Implement:

  • Real-time alerts for authorized staff.
  • Configurable alert formatting.
  • Violation summaries and evidence records.
  • Per-check diagnostic output.
  • Persistent logs across server restarts.
  • Optional Discord webhook integration.
  • Staff notification toggles.
  • Player investigation history.
  • Configurable alert permissions.

Do not expose sensitive diagnostic data to unauthorized players.

  1. LuckPerms Permission Structure

Use a documented permission hierarchy, including:

  • "auraprotect.announce"
  • "auraprotect.warn"
  • "auraprotect.kick"
  • "auraprotect.ban"
  • "auraprotect.tempban"
  • "auraprotect.unban"
  • "auraprotect.mute"
  • "auraprotect.unmute"
  • "auraprotect.freeze"
  • "auraprotect.staffchat"
  • "auraprotect.history"
  • "auraprotect.report"
  • "auraprotect.alerts"
  • "auraprotect.check"
  • "auraprotect.verbose"
  • "auraprotect.reload"
  • "auraprotect.bypass"
  • "auraprotect.admin"

Permissions must be checked explicitly. Do not treat OP status as equivalent to "auraprotect.bypass".

  1. Performance & Security
  • Optimize for Paper 26.2 and document the exact supported Java and API requirements.
  • Use asynchronous database operations where appropriate.
  • Avoid blocking the main server thread.
  • Use SQLite by default, with optional MySQL support.
  • Validate all commands and configuration values.
  • Handle player reconnects, offline players, and server restarts correctly.
  • Provide configurable check exemptions and bypass policies.
  • Prevent duplicate listeners and memory leaks.
  • Include debug logging and graceful error handling.
  • Never claim complete cheat-client detection where the server API cannot support it.
  1. Configuration Files

Provide a configurable "config.yml" containing:

  • General plugin settings
  • Announcement formatting
  • Enabled anti-cheat checks
  • Check sensitivity
  • Violation thresholds
  • Warning and punishment escalation
  • Violation decay
  • Staff alerts
  • OP and bypass policies
  • Logging and evidence retention
  • Database settings
  • Discord webhook settings
  • Customizable messages

Separate configuration sections should be provided when needed for punishments, messages, and individual detection modules.

  1. Required Deliverables

Deliver a complete project containing:

  • Java source code
  • Maven or Gradle build files
  • "plugin.yml" or appropriate plugin metadata
  • Default configuration files
  • LuckPerms permission documentation
  • Installation instructions
  • Functional command implementations
  • Anti-cheat detection modules
  • Database schema and migration handling
  • Unit and integration tests
  • A compiled AuraProtect JAR, if the build environment supports it
  • A clear list of implemented features and unavoidable limitations
  1. Final Acceptance Criteria

Before declaring AuraProtect complete:

  1. Build the project and resolve compilation errors.
  2. Test every command and its permissions.
  3. Verify "/announce <message>" broadcasts correctly.
  4. Verify OP status does not grant an automatic bypass.
  5. Verify explicit bypass permissions are audited.
  6. Test the warning and kick escalation.
  7. Test detection under simulated latency and low TPS.
  8. Verify persistent logs after restarting the server.
  9. Test legitimate gameplay against anti-cheat checks.
  10. Document every detection that cannot be reliably implemented server-side.

Final objective: AuraProtect must be a functional, maintainable Minecraft server protection plugin—not merely a collection of command names or detection claims.

Kodari AI
KodariOct 24 at 7:17 pm 3
AuraProtect
A comprehensive anti-cheat and moderation plugin for Paper servers featuring modular cheat detection for combat, movement, and world interaction exploits, persistent SQLite-based punishment history, a three-warning escalation system, staff alerting with Discord webhook support, granular LuckPerms permission hierarchy, and OP bypass protection requiring explicit per-check exemptions. Includes moderation commands for warnings, kicks, bans, mutes, freezes, and staff chat, plus announcement broadcasting with MiniMessage formatting and configurable violation thresholds, decay rates, and detection sensitivity.
  1. Create the Paper 26.2 / Java 25 project, metadata, configuration, and permission/limitation documentation.

  2. Implement SQLite persistence, moderation commands, staff controls, and three-warning escalation.

  3. Add conservative, configurable server-side checks, audited per-check bypasses, and focused parser tests.

Created AuraProtect targeting Paper 26.2 and Java 25, with MiniMessage announcements, moderation commands, LuckPerms-compatible permission checks, asynchronous SQLite history, staff alerts, freeze/mute/ban enforcement, audited per-check bypasses, and configurable three-warning escalation. OP status does not grant a bypass.

The enabled behavioral checks are speed, suspicious upward movement, anomalous reach, high attack rate, and repeated underfoot block placement. The README documents limitations: client-mod identification, Flashback, X-ray, NoFall, timer, packet anomalies, KillAura classification, aim assistance, MySQL, Discord webhooks, and appeals are not implemented as reliable detections or features.

A focused duration-parser test was added. The project build and command/integration tests were not run, so I can’t confirm compilation or acceptance-test results. No compiled JAR is attached. To build and download it in Kodari:

  1. Click Compile in the desktop top bar, or on phone tap ⋮ → Compile Project.

  2. Click Compile in the window.

  3. When it succeeds, click Download on the build or Download AuraProtect.jar in chat.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
README.md
settings.gradle
Code
13 1,324
src/main/java/com/auraprotect/AuraProtectPlugin.java
package com.auraprotect;

import com.auraprotect.anticheat.DetectionEngine;
import com.auraprotect.command.CommandRouter;
import com.auraprotect.database.ProtectionDatabase;
import com.auraprotect.moderation.ModerationService;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.minimessage.MiniMessage;
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;

import java.nio.file.Path;

public final class AuraProtectPlugin extends JavaPlugin {
    private ProtectionDatabase database;
    private ModerationService moderation;
    private DetectionEngine detectionEngine;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        Path databasePath = getDataFolder().toPath().resolve(getConfig().getString("database.file", "auraprotect.db"));
        database = new ProtectionDatabase(databasePath, getLogger());
        database.initialize().exceptionally(error -> {
            getLogger().severe("Could not initialize the SQLite database: " + error.getMessage());
            return null;
        });

        moderation = new ModerationService(this, database);
        detectionEngine = new DetectionEngine(this, database, moderation);
        getServer().getPluginManager().registerEvents(moderation, this);
        getServer().getPluginManager().registerEvents(detectionEngine, this);

        CommandRouter commandRouter = new CommandRouter(this, database, moderation, detectionEngine);
        String[] commands = {"announce", "warn", "kick", "ban", "tempban", "unban", "mute", "unmute", "freeze", "unfreeze", "staffchat", "history", "check", "report", "ac"};
        for (String commandName : commands) {
            var command = getCommand(commandName);
            if (command == null) {
                throw new IllegalStateException("Missing command declaration: " + commandName);
            }
            command.setExecutor(commandRouter);
            command.setTabCompleter(commandRouter);
        }

        database.loadBypasses().thenAccept(detectionEngine::loadBypasses).exceptionally(error -> {
            getLogger().severe("Could not load check exemptions: " + error.getMessage());
            return null;
        });
        getLogger().info("AuraProtect enabled. Client-mod installation detection is not claimed.");
    }

    @Override
    public void onDisable() {
        if (database != null) {
            database.close();
        }
    }

    public Component format(String message) {
        String prefix = getConfig().getString("messages.prefix", "<dark_gray>[<aqua>AuraProtect</aqua>]</dark_gray> ");
        return MiniMessage.miniMessage().deserialize(prefix + message);
    }

    public void send(CommandSender sender, String message) {
        sender.sendMessage(format(message));
    }

    public String escape(String input) {
        return MiniMessage.miniMessage().escapeTags(input == null ? "" : input);
    }

    public void broadcastAnnouncement(String message) {
        String prefix = getConfig().getString("general.announcement-prefix", "<gold><bold>ANNOUNCEMENT</bold></gold> <dark_gray>»</dark_gray> ");
        Component component = MiniMessage.miniMessage().deserialize(prefix + message.replace("\\n", "\n"));
        Bukkit.getOnlinePlayers().forEach(player -> player.sendMessage(component));
        Bukkit.getConsoleSender().sendMessage(PlainTextComponentSerializer.plainText().serialize(component));
    }

    public ProtectionDatabase database() {
        return database;
    }

    public ModerationService moderation() {
        return moderation;
    }

    public DetectionEngine detectionEngine() {
        return detectionEngine;
    }
}