FxAdvancedAntiCheat — Plugin Development Specification
Develop a complete, custom-made Minecraft anti-cheat plugin named FxAdvancedAntiCheat.
The plugin must be lightweight, optimized, customizable, reliable, and suitable for Minecraft survival servers, Lifesteal servers, Practice servers, and PvP networks.
Plugin Name: FxAdvancedAntiCheat Main Command: "/anticheat" Aliases: "/fxadvancedanticheat", "/fxaac", "/fxantichest" Prefix: "&#FF2E2E&lANTICHEAT &7▶"
- General Requirements
- Support hexadecimal colors, RGB colors, legacy Minecraft colors, and MiniMessage formatting.
- Use configurable messages, prefixes, detection thresholds, punishments, and broadcasts.
- Provide a comprehensive "config.yml".
- Organize anti-cheat checks into separate, configurable sections.
- Support configurable detection alerts and violation levels.
- Provide reliable player detection, punishment history, ban management, and staff alerts.
- Use asynchronous processing wherever safe, without accessing Bukkit APIs asynchronously when unsafe.
- Avoid unnecessary repeating tasks and excessive packet processing.
- Prevent duplicate punishments for the same detection event.
- Handle player disconnects, server shutdowns, and reloads safely.
- Include proper logging and useful error messages.
- Do not claim that a player is hacking merely because of high ping, low TPS, or one suspicious action.
- Make the plugin compatible with the supported server versions and clearly document any protocol limitations.
The developer must implement actual detection logic. Do not create commands that merely pretend to detect hacks.
- Commands
Main Commands
"/anticheat" "/fxadvancedanticheat" "/fxaac" "/fxantichest"
All aliases must execute the same main command handler.
Detection Commands
"/anticheat detect <player>"
Manually start a detection session for the specified online player.
The detection process should:
- Analyze available anti-cheat checks.
- Collect violation information.
- Display suspicious behavior and relevant check names.
- Provide the administrator with a detection summary.
- Avoid automatically declaring a player guilty without sufficient evidence.
"/anticheat check <player>"
Display a player's anti-cheat information, including:
- Current online status.
- Active detection session.
- Recent violations.
- Detected check types.
- Violation levels.
- Recent alerts.
- Previous kicks and bans.
- Current ban status.
- Whether the player has an active bypass.
Only show information that the plugin has actually collected. Do not claim to identify every client modification installed on a player's computer.
Punishment Commands
"/anticheat ban <player>"
Ban the specified player using the configured punishment system.
The command should use the configured default ban duration and reason unless an authorized administrator specifies an override.
"/anticheat unban <player>"
Remove the plugin's active ban for the specified player.
Persist ban information so it survives server restarts.
"/anticheat kick <player>"
Kick the specified player with the configured reason and disconnect message.
"/anticheat bypass <player>"
Toggle the player's anti-cheat bypass status.
Display whether bypass was enabled or disabled.
Bypassed players must not trigger automatic anti-cheat punishments. Their bypass status must be visible to authorized staff.
Bypass must never grant permission to other players or administrators.
Administration Commands
"/anticheat reload"
Reload supported configuration files, messages, check settings, punishments, and broadcasts without requiring a server restart.
Validate configuration values before applying them. If a configuration file contains invalid values, display a clear error instead of silently breaking the anti-cheat.
"/anticheat help"
Display all commands, aliases, descriptions, and permission requirements.
Permissions
Use one configurable permission for all anti-cheat administration commands.
Default permission:
"fxadvancedanticheat.admin"
The permission must be configurable in "config.yml".
All administrative commands require this permission.
Unauthorized players must receive:
"&#FF2E2EYou do not have permission to use this command."
Prevent unauthorized players from accessing detection reports, punishment commands, bypass controls, or staff alerts.
- Anti-Cheat Detection System
Implement a configurable detection framework with separate checks for different types of unfair gameplay.
Combat Checks
Include support for:
- Aim assistance.
- Auto-block.
- Auto-clicker.
- Reach.
- Fast bow.
- Criticals.
- KillAura.
- Hitbox manipulation.
- Velocity manipulation.
- No-slow.
- Unusual attack patterns.
Movement Checks
Include support for:
- Motion anomalies.
- Jump anomalies.
- Step.
- Boat fly.
- Entity flight.
- Anti-levitation.
- No-saddle movement anomalies.
- Entity speed.
- Elytra speed.
- Speed.
- Fast climb.
- Wall climb.
- Jesus.
- Flight.
- VClip detection where technically possible.
- Sprint anomalies.
- Strafe anomalies.
Player Interaction Checks
Include support for:
- Fast use.
- Fast place.
- Fast break.
- Tower.
- Scaffold.
- Timer.
- Baritone-related suspicious behavior where detectable.
- Ghost hand.
- Air place.
- Bad packets.
Not every client modification can be reliably detected by a server-side plugin. Document the limitations of each check.
Do not claim to detect installed client files or inactive mods unless the client explicitly provides verifiable information.
Check Configuration
Each check must support applicable settings such as:
- "enabled"
- "punishable"
- "max-violations"
- "alert-interval"
- "discord-alert-interval"
- "dont-alert-until"
- "maximum-ping"
- "minimum-tps"
- "punishment-commands"
- "broadcast-punishment"
- "buffer"
- "setback"
- "min-vl-to-setback"
Additional settings must be available only for checks that support them.
The system must correctly handle checks with missing optional settings by using documented defaults.
Violation System
Every check must maintain its own violation level.
When suspicious behavior is detected:
- Evaluate the check's detection conditions.
- Update the violation level.
- Apply buffer and decay settings where supported.
- Send alerts when configured thresholds are reached.
- Execute punishments only when the check is enabled, punishable, and its configured threshold is reached.
- Record the event in the punishment and detection history.
Violation levels must decrease according to the configured decay behavior.
- Main Anti-Cheat Configuration
Create a comprehensive configuration file:
"plugins/FxAdvancedAntiCheat/config.yml"
The supplied anti-cheat configuration should be adapted into the plugin's own configuration format.
Preserve the supplied check names, sub-check identifiers, thresholds, buffers, and applicable settings wherever supported.
The configuration must include the following hierarchy:
"checks.combat.aim.a" "checks.combat.aim.b" "checks.combat.autoblock.a" "checks.combat.autoclicker.a" "checks.combat.reach.a" "checks.combat.killaura.a" "checks.movement.flight.a" "checks.movement.speed.a" "checks.movement.timer.a" "checks.player.scaffold.a" "checks.player.fastplace.a" "checks.player.fastbreak.a"
Continue with all the other supplied check categories and their respective sub-checks.
Do not replace the complete supplied configuration with only these examples.
The developer must translate the complete supplied settings into valid YAML and implement support for each applicable option.
Important configuration rules:
- Preserve the original "enabled" and "punishable" values.
- Preserve supported buffer settings and detection thresholds.
- Preserve applicable ping and TPS conditions.
- Preserve optional setbacks, hotbar shuffling, random rotation, and other configured behavior when supported.
- Validate all values during loading.
- Never execute an invalid or malformed punishment command.
- Explain unsupported options instead of silently ignoring them.
- Do not invent detection algorithms merely to make every configuration option appear functional.
The plugin's configuration must not require Vulcan to be installed. Implement the supported checks independently.
- Punishment Escalation System
Create an automatic punishment system using the following settings.
ban-warning: warn: 3
ban-after-warn: enabled: true
Expected Behavior
- "warn: 3" means the player receives a warning after three qualifying kick events.
- If automatic banning is enabled, the plugin should count qualifying warnings.
- After the configured number of warnings, apply the configured ban.
- Keep the counters persistent across server restarts.
- Prevent duplicate warnings or bans from a single detection event.
- Allow authorized administrators to reset a player's punishment history through an appropriately permission-protected administrative action.
The number of warnings required before banning must be configurable.
The system must distinguish between manual kicks, anti-cheat kicks, and other server plugins' kicks.
Only count events specified by the configuration.
Important Punishment Safety
A single unreliable detection must not automatically produce a permanent ban.
Require stronger evidence for severe punishments and allow administrators to review detection history.
- Automatic Ban Duration
Create the following settings:
ban-setting: ban-reason: "Unfair Advantage" ban-duration: 3 duration-unit: "days" permanent-ban-for-severe-cheats: true
Ban Duration Rules
Normal-level cheating
- Default ban: 3 days.
Medium-level cheating
- Default ban: 7 days.
Severe cheating
- Allow a permanent ban for exceptionally strong evidence of severe cheating.
Examples of severe cheating may include reliably confirmed, extreme combat automation that produces clearly impossible attack behavior.
Do not permanently ban players based on a single uncertain signal.
The developer must implement a configurable severity classification system.
Administrators must be able to configure which checks and evidence levels qualify for each severity category.
The plugin must support:
- Temporary bans.
- Permanent bans.
- Ban expiration.
- Manual unbanning.
- Persistent ban records.
- Ban history.
- Configurable ban reasons.
- Correct remaining-duration calculations.
Display durations in readable formats, such as:
- "3 Days"
- "7 Days"
- "Permanent"
- Kick Screen
Create a configurable disconnect screen:
kick-screen: enabled: true title: "<#FF2E2E><bold>ANTI CHEAT</bold>" lines: - "<yellow>You have been kicked from" - "<yellow>the server!" - "" - "<#69F43F>● <white>Reason: <#69F43F>Unfair Advantage." - "" - "<white>Join our Discord for help!" footer: "<#47B6FF>discord.gg/fxstudio"
Expected Appearance
Title: ANTI CHEAT in red.
Main message:
- You have been kicked from the server!
- Reason: Unfair Advantage.
- Join our Discord for help!
Footer:
- "discord.gg/fxstudio"
Requirements:
- Support configurable titles, lines, and footers.
- Support MiniMessage and hex colors.
- Support the relevant disconnect-screen capabilities of each supported Minecraft version.
- Use the best compatible native disconnect component implementation.
- Do not pretend that a normal plugin can control the actual operating-system network error screen.
- If the exact requested layout is unavailable on a specific version, document the limitation and provide the closest supported implementation.
- Ban Screen
Create the following configuration:
ban-screen: enabled: true title: "&#FF2E2E&lANTI CHEAT" lines: - "" - "<#FF0000><bold>YOU HAVE BEEN BANNED</bold>" - "" - "<#69F43F>● <white>Banned On: <#69F43F>%ban-date%" - "<#69F43F>● <white>Reason: <#69F43F>%reason%" - "<#69F43F>● <white>Duration: <#69F43F>%duration-ban%" - "" - "<#F9C22B>If you feel you were incorrectly" - "<#F9C22B>punished, you can appeal at" footer: "<#F9C22B><underlined>discord.gg/fenixstudio</underlined>"
Placeholders
"%ban-date%" = Date the ban was issued.
"%reason%" = Actual ban reason.
"%duration-ban%" = Human-readable ban duration or "Permanent".
Requirements
- Display the configured ban information when a banned player attempts to join.
- Keep the ban active after a server restart.
- Reject expired temporary bans only after their expiration has been verified.
- Remove expired temporary bans automatically or during a subsequent join attempt.
- Allow administrators to unban players.
- Ensure that the ban screen uses the actual punishment information for the player.
The developer must implement the supported disconnect component and document version-specific limitations.
- Punishment Broadcasts
Create configurable kick and ban broadcasts.
punishment-broadcast: kick-broadcast: enabled: true message: "%prefix% &#FF2E2E%player% &fhas been kicked from the server. Reason: &#FF2E2E%reason%"
ban-broadcast: enabled: true message: "%prefix% &#FF2E2E%player% &fhas been banned from the server for &#FF2E2E%duration% &fReason: &#FF2E2E%reason%"
Requirements
- Broadcast only when the relevant broadcast setting is enabled.
- Support placeholders.
- Support hex colors and legacy colors.
- Prevent duplicate broadcasts.
- Do not broadcast private detection details to ordinary players.
- Allow administrators to configure separate messages for automatic and manual punishments if desired.
Duration Formatting
If the ban duration is three days, "%duration%" should display "3 Days".
If the ban duration is seven days, "%duration%" should display "7 Days".
If the ban is permanent, "%duration%" should display "Permanent".
Do not display raw internal values such as "604800000" milliseconds.
- Messages
Use this prefix:
"&#FF2E2E&lANTICHEAT &7▶"
Create a configurable messages section.
messages: reload: "%prefix% &fConfiguration has successfully reloaded" admin-detection: "%prefix% &fDetected suspicious behavior from &#FF2E2E%player%" admin-hack-detection: "%prefix% &#FF2E2E%player% &fis suspected of using &#FF2E2E%hack%"
no-permission: "&#FF2E2EYou do not have permission to use this command." player-not-found: "&#FF2E2EPlayer not found." player-not-online: "&#FF2E2EThat player is not online." player-only: "&#FF2E2EThis command can only be used by a player." invalid-usage: "&#FF2E2EInvalid command usage." invalid-duration: "&#FF2E2EInvalid ban duration." invalid-check: "&#FF2E2EUnknown anti-cheat check." invalid-config: "&#FF2E2EConfiguration contains invalid values." already-banned: "&#FF2E2EThis player is already banned." not-banned: "&#FF2E2EThis player is not banned." bypass-enabled: "%prefix% &fAnti-cheat bypass enabled for &#FF2E2E%player%" bypass-disabled: "%prefix% &fAnti-cheat bypass disabled for &#FF2E2E%player%" player-banned: "%prefix% &fSuccessfully banned &#FF2E2E%player%" player-unbanned: "%prefix% &fSuccessfully unbanned &#FF2E2E%player%" player-kicked: "%prefix% &fSuccessfully kicked &#FF2E2E%player%" detection-started: "%prefix% &fDetection started for &#FF2E2E%player%" detection-completed: "%prefix% &fDetection completed for &#FF2E2E%player%"
All error and no-permission messages must use "&#FF2E2E" for red text.
Allow administrators to customize every message.
- Staff Alerts
Create a configurable staff alert system.
When a check detects suspicious behavior, send authorized staff a message containing:
- Player name.
- Check category.
- Check name.
- Sub-check identifier.
- Violation level.
- Relevant detection information.
- Ping.
- Current server TPS, where available.
Example:
"&#FF2E2E&lANTICHEAT &7▶ &#FF2E2E%player% &fsuspected of &c%check% &7(VL: %vl%)"
Requirements:
- Alerts must respect each check's alert interval.
- Support a configurable minimum violation level before alerts begin.
- Do not send staff alerts to players without the appropriate permission.
- Prevent repeated alerts from flooding staff chat.
- Allow staff alerts to be enabled or disabled.
- Discord Webhook Integration
Provide an optional Discord webhook integration.
Configuration example:
discord: enabled: false webhook-url: "" alerts: detections: true kicks: true bans: true
Features:
- Send detection alerts.
- Send kick notifications.
- Send ban notifications.
- Include player name, check name, violation level, punishment, and timestamp where available.
- Use asynchronous HTTP requests.
- Handle webhook failures without affecting the server.
- Never expose the webhook URL in public chat or ordinary logs.
- Keep Discord integration disabled unless explicitly configured.
- Detection History and Storage
Store player information persistently.
Use a lightweight storage system suitable for small servers, with SQLite recommended by default.
Record:
- Player UUID.
- Last known username.
- Detection timestamps.
- Check names.
- Violation levels.
- Punishment history.
- Kick counts.
- Warning counts.
- Ban dates.
- Ban expiration.
- Ban reason.
- Bypass status, if persistence is enabled.
Requirements:
- Use UUIDs as the primary player identifier.
- Avoid losing records when usernames change.
- Prevent duplicate punishment records.
- Handle database errors safely.
- Include a configurable data-retention policy.
- Do not store players' passwords or unrelated sensitive information.
- Performance and Compatibility
The plugin must:
- Minimize server tick overhead.
- Avoid excessive packet listeners and repeated calculations.
- Avoid unnecessary database queries on the main thread.
- Work correctly under normal server lag.
- Respect configured TPS and ping thresholds.
- Avoid treating ordinary latency as definitive evidence of cheating.
- Handle server shutdowns without corrupting stored information.
- Provide clear startup logs.
Support the Minecraft versions and server software explicitly specified by the developer.
If ProtocolLib or another packet library is required, document it as a dependency. Prefer native APIs where sufficient.
Do not claim support for a Minecraft version until the implementation has been tested on it.
- Configuration Validation
During startup and reload:
- Validate all check names.
- Validate numerical thresholds.
- Validate ban durations.
- Validate message placeholders where practical.
- Validate punishment commands.
- Report malformed YAML clearly.
- Preserve the previous working configuration if a reload fails.
The plugin must not silently ignore unsupported configuration settings.
- Developer Deliverables
Provide a complete, buildable plugin project.
Include:
- Java source code.
- "plugin.yml" or the appropriate supported plugin metadata.
- Build configuration.
- "config.yml".
- Message configuration.
- All implemented detection checks.
- Punishment manager.
- Ban manager.
- Kick manager.
- Warning and escalation manager.
- Staff alert manager.
- Optional Discord webhook integration.
- Persistent storage.
- Command handling and tab completion.
- Permission documentation.
- Installation instructions.
- Configuration documentation.
- Build instructions.
- Testing instructions.
Do not deliver pseudocode, empty methods, placeholder detection algorithms, or a project that compiles but does not implement its advertised features.
Clearly identify checks that cannot be implemented reliably using server-side information alone.
Final Goal
Create FxAdvancedAntiCheat as a lightweight, customizable, professional anti-cheat plugin with configurable combat and movement checks, detection commands, automatic punishment escalation, temporary and permanent bans, custom disconnect messages, staff alerts, optional Discord integration, and persistent punishment history.
Use the specified prefix and colors consistently throughout the plugin.
All error and permission-denied messages must use "&#FF2E2E".
The plugin must be functional, maintainable, configurable, and honest about its detection capabilities.
Set up the Paper plugin, configurable checks, validation, and color/message handling.
Add persistent player history, bans, warning escalation, staff alerts, and optional Discord webhooks.
Implement the command suite and native-event detections, with unsupported packet/client checks explicitly disabled and documented.
Add configuration, plugin metadata, and project documentation.
Created FxAdvancedAntiCheat for Paper 1.21.4+ on Java 21, with the requested command aliases, configurable permission, checks, broadcasts, kick/ban messages, and reload validation.
The project includes native-event heuristics for reach, attack rate, bow draw timing, movement anomalies, fast place/break, and scaffold-like placement; persistent YAML records for violations, punishments, bypasses, and bans; warning escalation; staff alerts; and optional asynchronous Discord webhooks.
Packet-dependent checks are listed as unsupported and disabled rather than advertised as working. Disconnect messages are colored multiline text—not separate title/footer fields—and the plugin does not inspect client files. No separate source anti-cheat configuration was included, so the config provides defaults for the requested check hierarchy rather than translating unavailable thresholds.
package com.fxstudio.fxaac;
import com.fxstudio.fxaac.command.AntiCheatCommand;
import com.fxstudio.fxaac.config.ConfigManager;
import com.fxstudio.fxaac.detection.CheckManager;
import com.fxstudio.fxaac.detection.DetectionListener;
import com.fxstudio.fxaac.punishment.PunishmentManager;
import com.fxstudio.fxaac.storage.PlayerDataStore;
import com.fxstudio.fxaac.webhook.WebhookClient;
import com.fxstudio.fxaac.alert.AlertManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public final class FxAdvancedAntiCheat extends JavaPlugin {
private ConfigManager configManager;
private PlayerDataStore dataStore;
private WebhookClient webhookClient;
private PunishmentManager punishmentManager;
private AlertManager alertManager;
private CheckManager checkManager;
@Override
public void onEnable() {
configManager = new ConfigManager(this);
if (!configManager.loadInitial()) {
getServer().getPluginManager().disablePlugin(this);
return;
}
dataStore = new PlayerDataStore(this);
if (!dataStore.load()) {
getServer().getPluginManager().disablePlugin(this);
return;
}
webhookClient = new WebhookClient(this);
punishmentManager = new PunishmentManager(this);
alertManager = new AlertManager(this);
checkManager = new CheckManager(this);
Bukkit.getPluginManager().registerEvents(new DetectionListener(this), this);
AntiCheatCommand command = new AntiCheatCommand(this);
getCommand("anticheat").setExecutor(command);
getCommand("anticheat").setTabCompleter(command);
int saveSeconds = Math.max(10, configManager.get().getInt("storage.save-interval-seconds", 60));
Bukkit.getScheduler().runTaskTimer(this, dataStore::saveAsync, 20L * saveSeconds, 20L * saveSeconds);
Bukkit.getScheduler().runTaskTimer(this, checkManager::decayViolations, 20L * 60L, 20L * 60L);
getLogger().info("FxAdvancedAntiCheat enabled. Native event checks are active; packet-only checks remain disabled.");
}
@Override
public void onDisable() {
if (dataStore != null) dataStore.saveSync();
if (webhookClient != null) webhookClient.close();
}
public ConfigManager getConfigManager() { return configManager; }
public PlayerDataStore getDataStore() { return dataStore; }
public WebhookClient getWebhookClient() { return webhookClient; }
public PunishmentManager getPunishmentManager() { return punishmentManager; }
public AlertManager getAlertManager() { return alertManager; }
public CheckManager getCheckManager() { return checkManager; }
}