Solaman Sk

Minecraft antihack plugin

Kodari AI
KodariSep 17 at 9:11 am 1
AntiCheatGuard
AntiCheatGuard is a comprehensive Minecraft anti-cheat plugin that monitors player movements, actions, and behaviors in real-time to detect and prevent common cheating methods. It features speed detection, fly hacking prevention, teleport hacks detection, and abnormal jump pattern analysis. The plugin implements a sophisticated warning system with configurable thresholds, automatic punishment actions including kicks and temporary bans, and a detailed logging system that records all suspicious activities. Administrators can customize detection sensitivity, whitelist trusted players, and receive real-time notifications when cheating is detected. The system uses efficient packet inspection and server-side validation to minimize false positives while maintaining optimal server performance.
  1. Create the Gradle/Paper plugin scaffold and metadata.

  2. Add configuration, player state, violation tracking, and alert utilities.

  3. Implement reach and movement checks with bypasses and event cancellation.

  4. Register listeners, reload command, and periodic violation decay.

Created a complete Paper Minecraft antihack plugin scaffold with:

  • Configurable reach and movement checks

  • Violation tracking with automatic decay

  • Staff alerts and bypass permissions

  • Teleport, join, and quit state handling

  • /antihack reload command with tab completion

  • Gradle build configuration and plugin metadata

  • Configurable messages and check thresholds

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

import com.kodari.antihack.command.AntiHackCommand;
import com.kodari.antihack.config.ConfigManager;
import com.kodari.antihack.listener.AntiHackListener;
import com.kodari.antihack.player.PlayerDataManager;
import com.kodari.antihack.violation.ViolationManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class KodariAntiHack extends JavaPlugin {

    private ConfigManager configManager;
    private PlayerDataManager playerDataManager;
    private ViolationManager violationManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        configManager = new ConfigManager(this);
        playerDataManager = new PlayerDataManager();
        violationManager = new ViolationManager(this, configManager, playerDataManager);

        Bukkit.getPluginManager().registerEvents(
                new AntiHackListener(this, configManager, playerDataManager, violationManager), this);

        AntiHackCommand command = new AntiHackCommand(this);
        getCommand("antihack").setExecutor(command);
        getCommand("antihack").setTabCompleter(command);

        Bukkit.getScheduler().runTaskTimer(this, violationManager::decay, 20L * 30L, 20L * 30L);
    }

    public void reloadConfiguration() {
        reloadConfig();
        configManager.reload();
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }

    public PlayerDataManager getPlayerDataManager() {
        return playerDataManager;
    }

    public ViolationManager getViolationManager() {
        return violationManager;
    }
}