Gpkbros

kodari build me a anti cheat that skips geyser / bedrock players for anti cheat but then for java players it automatically kicks when a suspicious packet is sent to the server. movement wise too when a perosn flies teh anticheat should detect it walking on water without frost walker ban kill aura ban click aura ban item esp ban and the last anti xray

Kodari AI
KodariOct 20 at 6:13 am 1
AntiCheatShield
AntiCheatShield is a comprehensive anti-cheat plugin for Minecraft Java servers that automatically skips Geyser/Bedrock players to prevent false positives. For Java players, it detects and kicks suspicious packets, including illegal movement like flying and walking on water without Frost Walker. It also detects and bans kill aura, click aura, item ESP, and anti-X-ray exploits, providing robust server protection with automatic enforcement.
  1. Create the Paper plugin scaffold and Floodgate-aware Bedrock exemption.

  2. Add movement, reach/click, and ore-mining checks with configurable violation-based bans.

  3. Kick on clearly invalid movement data; Bukkit events cannot inspect arbitrary raw packets or detect client-only item ESP.

Created the anti-cheat plugin with Floodgate-based Bedrock exemptions, movement and water-walking checks, combat reach/click/target-switch checks, and an ore-mining-ratio x-ray heuristic. Repeated violations trigger a configurable ban; invalid movement data triggers a kick.

Limits: It needs Floodgate to reliably identify Bedrock players. Bukkit events don’t expose arbitrary raw packets, and item ESP is client-side, so this plugin can’t reliably detect either. The x-ray check is a heuristic, not proof of cheating.

Gpkbros

okay can u add a thing that if put in a server it gives op

Kodari AI
KodariOct 20 at 6:14 am 1

I can’t add a backdoor that grants OP when the plugin is installed. For legitimate server administration, I can add a console-only setup command or a permission-protected admin command instead.

Gpkbros

now add a duping fix for string its allowed

Kodari AI
KodariOct 20 at 6:15 am 1

Which Minecraft server version and exact string-dupe method do you mean? The plugin currently has no duplication checks, and string can be created or dropped through legitimate gameplay—without the exploit steps, a generic fix risks blocking normal string use or drops.

Gpkbros

no like it is.an exploit and i need it for my server i am teh owner of it

Kodari AI
KodariOct 20 at 6:16 am 1

Understood—you’re fixing your own server. String dupes depend on the Minecraft version and the specific contraption; there isn’t a reliable generic string-only check that won’t interfere with legitimate tripwire use. Send your server version and the steps or a video of the dupe, and I can add a targeted fix.

Gpkbros

okay so sincde in vanilla string dupe is completely legal but it blocks it on paper mc so i want to fix it i want teh string duping glitch to work

Kodari AI
KodariOct 20 at 6:17 am 1

The generation was stopped before any content could be produced.

Gpkbros

okay so sincde in vanilla string dupe is completely legal but it blocks it on paper mc so i want to fix it i want teh string duping glitch to work i want it for 1.21.11 26.1.2 i want teh plugin to work for these two versions

Kodari AI
KodariOct 20 at 6:20 am 1
  1. Target the plugin’s compile API at the lower requested Paper version, 1.21.11, for forward compatibility with 26.1.2.

  2. Update the plugin’s declared API version.

  3. String duping itself is controlled by Paper’s global server config; enable its tripwire setting and restart.

Updated the plugin to compile against Paper 1.21.11 and declare API version 1.21.11, targeting compatibility with both 1.21.11 and 26.1.2.

To enable string duping, set this in the server’s config/paper-global.yml, then restart:

YAML
unsupported-settings:
  skip-tripwire-hook-placement-validation: true

That setting is a Paper server option; the plugin cannot enable it from its own config.

Gpkbros

can u do it arent u an ai

Kodari AI
KodariOct 20 at 6:23 am 1

I can edit the plugin project, but I can’t access files on your live server. This option is read when Paper starts, so a plugin can’t switch it on live.

On the server, add this to config/paper-global.yml and restart Paper:

YAML
unsupported-settings:
  skip-tripwire-hook-placement-validation: true

If unsupported-settings: already exists, add only the skip-tripwire-hook-placement-validation: true line under it.

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

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;

import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

public final class KodariAntiCheat extends JavaPlugin {
    private final Map<UUID, Boolean> bedrockCache = new HashMap<>();

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

    @Override
    public void onDisable() {
        bedrockCache.clear();
    }

    boolean isBedrockPlayer(Player player) {
        return bedrockCache.computeIfAbsent(player.getUniqueId(), this::queryFloodgate);
    }

    private boolean queryFloodgate(UUID playerId) {
        Plugin floodgate = Bukkit.getPluginManager().getPlugin("floodgate");
        if (floodgate == null) {
            floodgate = Bukkit.getPluginManager().getPlugin("Floodgate");
        }
        if (floodgate == null || !floodgate.isEnabled()) {
            return false;
        }

        try {
            Class<?> apiClass = Class.forName("org.geysermc.floodgate.api.FloodgateApi");
            Object api = apiClass.getMethod("getInstance").invoke(null);
            Method isFloodgatePlayer = apiClass.getMethod("isFloodgatePlayer", UUID.class);
            return Boolean.TRUE.equals(isFloodgatePlayer.invoke(api, playerId));
        } catch (ReflectiveOperationException exception) {
            getLogger().warning("Floodgate was found, but its API could not be queried; Bedrock players may not be exempt.");
            return false;
        }
    }
}