jge_yash

and it can stop the hack client and paid client mod like i give you some name hack client name that is want to stop faith hacked client ,wurst client, meteor client , doomsday

📎 1 file 1,630 chars
📄
pasted-code-1778081596388.txt
txt 69 lines
▶
Chaos Fun + Anti-Cheat Plugin (Updated)

Target: Paper 1.21.1–1.21.11

🔒 Anti-Cheat System
Detect:
Speed, Fly, NoFall, KillAura (basic)
Each violation:
+1 warning
Max 3 warnings:
→ Auto 1-hour temp ban
Alerts staff + logs
🛠 Staff Commands (ankg.admin)
/warn  
/warnings 
/vanish
/tempban  
Kodari AI
KodariMay 6 at 3:39 pm 19,548 (v2)

I’ll create an advanced anti-cheat and fun commands plugin that detects hack clients and provides controlled player abilities.

AnkgPlugin
A dual-purpose plugin combining anti-cheat protection with controlled fun commands. Detects hack clients (Faith, Wurst, Meteor, Doomsday) and common exploits (Speed, Fly, NoFall, KillAura) with automatic warning system and temp-bans. Features safe player commands like temporary creative mode, power mode, and controlled TNT nuke with cooldowns. Includes staff moderation tools, comprehensive logging, and customizable GUI interface. All abilities have configurable cooldowns and durations to prevent abuse.

Now I’ll create the remaining files needed for the plugin:

All core files have been created! The plugin includes:

Anti-Cheat System:

  • Detects Speed, Fly, NoFall, and KillAura hacks

  • Automatic warning system with configurable thresholds

  • Auto temp-ban after max warnings

  • Comprehensive logging

Staff Commands:

  • /warn <player> <reason> - Issue warnings

  • /warnings <player> - View player warnings

  • /vanish - Toggle vanish mode

  • /tempban <player> <minutes> - Temporary ban

  • /unban <player> - Remove temp ban

  • /ankg reload - Reload configuration

Player Commands:

  • /ankgnuke - Spawn TNT circle with cooldown

  • /antiop - Temporary power mode (creative + flight + haste)

  • /antigmc - Temporary creative mode

  • /ankg - Open GUI menu

Features:

  • Boss bars for ability timers

  • Cooldown system for all abilities

  • Combat tagging (blocks creative in combat)

  • Comprehensive config with all options

  • Full logging system

  • GUI interface for player info

The plugin is ready to compile and use on Paper 1.21.1+!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
24 1,626
src/main/java/com/ankg/plugin/AnkgPlugin.java
package com.ankg.plugin;

import com.ankg.plugin.commands.*;
import com.ankg.plugin.data.PlayerDataManager;
import com.ankg.plugin.listeners.*;
import com.ankg.plugin.managers.AntiCheatManager;
import com.ankg.plugin.managers.ConfigManager;
import com.ankg.plugin.util.LogUtil;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class AnkgPlugin extends JavaPlugin {
    
    private ConfigManager configManager;
    private PlayerDataManager playerDataManager;
    private AntiCheatManager antiCheatManager;
    private LogUtil logUtil;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.logUtil = new LogUtil(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.antiCheatManager = new AntiCheatManager(this);
        
        registerCommands();
        registerListeners();
        
        getLogger().info("AnkgPlugin has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (playerDataManager != null) {
            playerDataManager.cleanup();
        }
        getLogger().info("AnkgPlugin has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("warn").setExecutor(new WarnCommand(this));
        getCommand("warnings").setExecutor(new WarningsCommand(this));
        getCommand("vanish").setExecutor(new VanishCommand(this));
        getCommand("tempban").setExecutor(new TempBanCommand(this));
        getCommand("unban").setExecutor(new UnbanCommand(this));
        getCommand("ankgnuke").setExecutor(new NukeCommand(this));
        getCommand("antiop").setExecutor(new PowerModeCommand(this));
        getCommand("antigmc").setExecutor(new CreativeModeCommand(this));
        getCommand("ankg").setExecutor(new AnkgCommand(this));
        
        getCommand("ankg").setTabCompleter(new AnkgTabCompleter());
    }
    
    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        getServer().getPluginManager().registerEvents(new AntiCheatListener(this), this);
        getServer().getPluginManager().registerEvents(new CombatListener(this), this);
        getServer().getPluginManager().registerEvents(new AbilityListener(this), this);
    }
    
    public void reloadConfiguration() {
        reloadConfig();
        configManager = new ConfigManager(this);
    }
}