sanjeevlegendxd_91354

This client is a TBot-style combat client designed to automatically attack nearby players under specific conditions. The purpose of the client is to assist the player in combat without using a visible interface.

The client is controlled using a keybind set to “N”. When the player presses N, the TBot feature toggles on or off. The client does not include any INVENTORY GUI, meaning there are no menus or visual settings—everything is controlled only through the keybind.

Once enabled, the client will detect players that come within attack range. If a player enters the range, the client will automatically attack them.

However, the attack system has an important condition:

The main player must be moving or jumping for the TBot to work.

If the main player is standing still and showing no movement, the client will not attack any nearby players.

This behavior makes the system appear more natural and less automated, because attacks only occur while the player is actively moving.

Main Features: ⚔️ Automatic attack on nearby players ⌨️ Toggle keybind: N 🚫 No INVENTORY GUI interface 🏃 Works only when the player is moving or jumping ⛔ Does not attack when the player is idle

Kodari AI
KodariFeb 28 at 3:11 am 9,292 (v2)

I’ll create a TBot combat client plugin with automatic attack functionality based on player movement.

TBotClient
Automatic combat assistance plugin that targets and attacks nearby players when the user is actively moving or jumping. Features toggle-based activation with no GUI interface, movement validation to prevent idle attacks, and configurable attack range and cooldown settings. Designed to assist in PvP combat while maintaining natural movement patterns.

Plugin created successfully!

TBotClient is now ready with automatic combat functionality that attacks nearby players when you’re actively moving.

Key Features:

  • Toggle Command: /tbot (or /tb, /bot) to enable/disable auto-attack

  • Movement Validation: Only attacks when you’re moving or jumping (500ms window)

  • Smart Targeting: Finds nearest player within 3.5 blocks

  • Attack Cooldown: 0.5 second delay between attacks (configurable)

  • Line of Sight: Optional requirement to see target before attacking

  • Auto-Facing: Automatically turns to face target when attacking

  • Safe Checks: Ignores spectators and creative mode players

Configuration Options:

  • attack-range - How far to detect targets (default 3.5 blocks)

  • attack-cooldown-ticks - Delay between attacks (default 10 ticks)

  • movement-timeout-ms - How recent movement must be (default 500ms)

  • require-movement - Toggle movement requirement (default true)

  • require-line-of-sight - Must see target (default true)

Note: Server-side plugins cannot detect raw key presses like “N”. The toggle uses a command instead. For true keybind support, you would need a client-side mod that sends plugin messages to the server.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
8 375
src/main/java/com/tbot/client/TBotPlugin.java
package com.tbot.client;

import com.tbot.client.command.TBotCommand;
import com.tbot.client.listener.TBotListener;
import com.tbot.client.manager.TBotManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class TBotPlugin extends JavaPlugin {
    
    private TBotManager tbotManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.tbotManager = new TBotManager(this);
        
        Bukkit.getPluginManager().registerEvents(new TBotListener(this), this);
        
        getCommand("tbot").setExecutor(new TBotCommand(this));
        
        getLogger().info("TBotClient has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (tbotManager != null) {
            tbotManager.shutdown();
        }
        getLogger().info("TBotClient has been disabled!");
    }
}