S

Rebrand this plugin to AnungPracticer The Author name Anunglt Package name anunglt Sent the Banner ANUNGIT PLUGINS

The plugin can also unlimited or -1 totems pop, and add feature of Slow Falling Effect mode, Shield Mode with enchant, and Movements, Bot Skins and Bot Name but this feature must have permission to use it.

For Movements there has 4 Type, Stand, Look, Follow, Attack

Kodari AI
KodariAug 25 at 7:34 pm 3
  1. Rebrand the plugin to AnungPracticer, update author/package metadata, and replace the banner text with ANUNGIT PLUGINS.

  2. Add unlimited (-1) totem-pop handling.

  3. Add configurable Slow Falling, enchanted Shield, movement modes, bot skins, and bot names with permissions.

  4. Wire configuration, permissions, and registrations without breaking existing behavior.

The snapshot contains no Java source, so the requested runtime features cannot be patched into existing handlers. I’m adding the missing implementation against the existing Paper/Citizens setup, starting with the practice command and unlimited-totem foundation.

  1. Rebranded the plugin to AnungPracticer with author Anunglt, package anunglt, and banner text ANUNGIT PLUGINS.

  2. Added the missing Paper/Citizens plugin implementation:

    • /train

    • /cleartrain

    • Bot deployment and cleanup

    • Unlimited totems using -1 or unlimited

    • Slow Falling mode

    • Enchanted Shield mode

    • Bot movement modes: STAND, LOOK, FOLLOW, ATTACK

    • Configurable bot name and skin

  3. Added permissions:

    • anungpracticer.feature.slow-falling

    • anungpracticer.feature.shield

    • anungpracticer.feature.movement

    • anungpracticer.feature.bot-skin

    • anungpracticer.feature.bot-name

  4. Added src/main/resources plugin/config/message files and a root pom.xml for building the new plugin.

Example command:

Plain Text
/train FOLLOW -1 true Training_Bot Notch

This creates a bot that follows the player, has unlimited totem pops, uses Slow Falling, and uses the Notch skin.

S

the command are same like the brand /anungpracticer to open gui just remake these command into /anungpracticer

Kodari AI
KodariAug 25 at 7:45 pm 1
  1. Replace /train with /anungpracticer as the main command.

  2. Add the missing clickable configuration GUI for movement, totems, Slow Falling, Shield, bot name, skin, deploy, and clear.

  3. Keep /cleartrain as a convenience command and wire GUI clicks safely.

Changed the main command to:

Plain Text
/anungpracticer

It now opens the training configuration GUI with options for:

  • Movement: Stand, Look, Follow, Attack

  • Totems: 5 or Unlimited

  • Slow Falling

  • Shield with enchantment

  • Bot name

  • Bot skin

  • Clear bot

  • Deploy bot

/cleartrain remains available as a shortcut.

Updated command references and messages from /train to /anungpracticer.

S

Add armor settings like Helmet RightClick To Change Enchant Type like Double Blast Prot or Protection 4, For Left Click Change The helmet into Diamond Helmet or Netherite helmet

Chestplate Rightclick To Change Enchant Type like Double Blast Prot or Protection 4, For Left Click Change The Chestplate into Diamond Chestplate or Netherite Chestplate

Leggings Rightclick To Change Enchant Type like Double Blast Prot or Protection 4, For Left Click Change The helmet into Diamond Leggings or Netherite Leggings

Boots Rightclick To Change Enchant Type like Double Blast Prot or Protection 4, For Left Click Change The helmet into Diamond Boots or Netherite Boots

This Armor has full enchants, so just keep player can change the bot enchantment at leggings and boots armor

Fix Attack mode dont spam hit, just use hit critical only, Fix Shield Mode just offhand the shield dont break while taking damage from explosion, just use totem in main hand Fix Shield Strafe just offhand the shield dont break while taking damage from explosion, just use Netherite Sword With Enchantments

Kodari AI
KodariAug 25 at 8:31 pm 4
  1. Add armor GUI controls for material and enchantment presets, including full-enchant defaults with editable leggings/boots.

  2. Fix attack mode to perform only spaced critical hits instead of spam.

  3. Correct Shield Mode and Shield Strafe equipment/behavior for explosion damage and weapon handling.

Implemented the armor and combat updates:

  • Added armor settings to the GUI:

    • Helmet

    • Chestplate

    • Leggings

    • Boots

  • Left-click armor slots switch between Diamond and Netherite.

  • Right-click leggings and boots switches between:

    • Protection IV

    • Blast Protection IV

  • Helmet and chestplate keep fixed full enchantment presets.

  • Added full armor enchantments including Unbreaking, Mending, and slot-specific enchants.

  • Added anungpracticer.feature.armor permission.

  • Attack mode now:

    • Does not use Citizens’ spam attack navigation.

    • Jumps before attacking.

    • Performs attacks only while falling for critical hits.

    • Uses a hit cooldown.

  • Shield Mode now equips:

    • Offhand: unbreakable enchanted Shield

    • Main hand: Totem of Undying

  • Shield Strafe now equips:

    • Offhand: unbreakable enchanted Shield

    • Main hand: enchanted Netherite Sword

  • Shield/totem restoration was updated to preserve the correct equipment layout after a pop.

S

Make the armor unbreakable, and remove Thorns Enchantment And fix spam "bot popped remaining totems: unlimited" dont spam it, Also the plugins can modify GUI Slot, and manage layout GUI, and we can set the lore of all

Also add Bot Teleport, While Click Teleport in gui, the bot will automatically teleport to the player who click it

Fix the bot doesnt hit on the player by Hit Critical, If Bot are jumped then critical hit, if bot are walking to the player then use attack swing, wait for attack swing cooldown, then hit it again or jumped in /anungpracticer <attack,shield,strafe> command

Kodari AI
KodariAug 25 at 8:50 pm 1
  1. Make bot armor unbreakable and remove Thorns.

  2. Debounce unlimited-totem messages and correct attack timing for critical/jump and normal swing cooldowns.

  3. Make GUI slots/layout/lore configurable.

  4. Add a GUI teleport action that moves the bot to the clicking player.

The code changes are in place; I’m adding the default configurable GUI layout so the menu remains usable while allowing every item’s slot, material, name, and lore to be overridden in config.yml.

Implemented:

  • Armor is now unbreakable.

  • Removed Thorns completely.

  • Unlimited totem messages are no longer repeatedly spammed; "unlimited" is announced only once per bot session.

  • Attack mode now:

    • Performs a critical hit when the bot is falling after a jump.

    • Performs a normal attack swing while walking toward the player.

    • Waits for the attack cooldown before attacking again.

  • Added configurable GUI layout:

    • GUI size: gui.size

    • GUI title: gui.title

    • Every item slot: gui.items.<item>.slot

    • Every item material: gui.items.<item>.material

    • Every item name: gui.items.<item>.name

    • Every item lore: gui.items.<item>.lore

  • Added configurable GUI items for armor, movement, totems, Slow Falling, combat mode, name, skin, teleport, clear, and deploy.

  • Added supported lore placeholders:

    • {slot}

    • {material}

    • {enchant}

    • {movement}

    • {totems}

    • {enabled}

    • {mode}

    • {name}

    • {skin}

  • Added the Teleport Bot GUI button, which teleports the owner’s active bot to the player who clicks it.

S

why the gui is empty?

Kodari AI
KodariAug 25 at 9:08 pm 1

The GUI is empty because setGuiItem() defaults every missing slot to -1. saveDefaultConfig() does not merge new GUI settings into an existing config.yml, so older installations can have no gui.items.*.slot values and every item gets skipped. I’m fixing the code to use built-in slot defaults when those settings are absent.

The GUI was empty because existing config.yml files may not contain the newer gui.items.<item>.slot settings. Missing slots were being read as -1, so every item was skipped.

Fixed AnungPracticer.java to use built-in default slots whenever a slot is missing:

  • Armor: slots 0–3

  • Movement: 10

  • Totems: 12

  • Slow Falling: 14

  • Combat Mode: 16

  • Bot Name: 19

  • Bot Skin: 21

  • Teleport: 22

  • Clear: 23

  • Deploy: 25

The GUI should now populate even without manually updating the configuration.

Kodari can make mistakes. Review important code before using.
Files
META-INF
src
config.yml
messages.yml
plugin.yml
pom.xml
Code
10 1,411
src/main/java/anunglt/AnungPracticer.java
package anunglt;

import net.citizensnpcs.api.CitizensAPI;
import net.citizensnpcs.api.event.CitizensEnableEvent;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.player.AsyncPlayerChatEvent;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.InventoryHolder;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.HashMap;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.UUID;

public final class AnungPracticer extends JavaPlugin implements Listener, CommandExecutor, TabCompleter {
    private BotManager botManager;
    private final Map<UUID, GuiSettings> guiSettings = new HashMap<>();
    private final Map<UUID, InputType> pendingInput = new HashMap<>();

    @Override
    public void onEnable() {
        saveDefaultConfig();
        botManager = new BotManager(this);
        getServer().getPluginManager().registerEvents(botManager, this);
        getServer().getPluginManager().registerEvents(this, this);
        getCommand("anungpracticer").setExecutor(this);
        getCommand("anungpracticer").setTabCompleter(this);
        getCommand("cleartrain").setExecutor(this);
        getCommand("cleartrain").setTabCompleter(this);
        getLogger().info("ANUNGIT PLUGINS");
        getLogger().info("AnungPracticer enabled for Anunglt.");
    }

    @Override
    public void onDisable() {
        if (botManager != null) {
            botManager.clearAll();
        }
    }

    @EventHandler
    public void onCitizensEnable(CitizensEnableEvent event) {
        getLogger().info("Citizens integration ready.");
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (!(sender instanceof Player player)) {
            sender.sendMessage(ChatColor.RED + "This command can only be used by players.");
            return true;
        }
        if (!player.hasPermission("anungpracticer.use")) {
            player.sendMessage(ChatColor.RED + "You don't have permission to use this command.");
            return true;
        }
        if (command.getName().equalsIgnoreCase("cleartrain")) {
            botManager.clear(player);
            return true;
        }
        if (args.length == 0) {
            openMenu(player);
            return true;
        }
        if (args[0].equalsIgnoreCase("clear")) {
            botManager.clear(player);
            return true;
        }
        if (!isAllowedWorld(player)) {
            player.sendMessage(ChatColor.RED + "You cannot use /anungpracticer in this world.");
            return true;
        }
        BotManager.Options options = parseOptions(player, args);
        if (options == null) {
            return true;
        }
        botManager.deploy(player, options);
        return true;
    }

    private void openMenu(Player player) {
        GuiSettings settings = guiSettings.computeIfAbsent(player.getUniqueId(), ignored -> createGuiSettings(player));
        Inventory inventory = Bukkit.createInventory(new PracticeMenuHolder(player.getUniqueId()), getGuiSize(),
                color(getConfig().getString("gui.title", "&3AnungPracticer")));
        setGuiItem(inventory, "helmet", armorItem(settings.helmetMaterial, "Helmet", settings.helmetEnchant));
        setGuiItem(inventory, "chestplate", armorItem(settings.chestplateMaterial, "Chestplate", settings.chestplateEnchant));
        setGuiItem(inventory, "leggings", armorItem(settings.leggingsMaterial, "Leggings", settings.leggingsEnchant));
        setGuiItem(inventory, "boots", armorItem(settings.bootsMaterial, "Boots", settings.bootsEnchant));
        setGuiItem(inventory, "movement", configuredItem("movement", Material.COMPASS,
                "&bMovement: {movement}", Arrays.asList("&7Click to cycle: STAND, LOOK, FOLLOW, ATTACK"),
                "{movement}", settings.movement));
        setGuiItem(inventory, "totems", configuredItem("totems", Material.TOTEM_OF_UNDYING,
                "&6Totems: {totems}", Arrays.asList("&7Click to switch between 5 and unlimited"),
                "{totems}", settings.totems == -1 ? "Unlimited" : String.valueOf(settings.totems)));
        setGuiItem(inventory, "slow-falling", configuredItem("slow-falling", Material.FEATHER,
                "&fSlow Falling: {enabled}", Arrays.asList("&7Click to toggle Slow Falling"),
                "{enabled}", onOff(settings.slowFalling)));
        setGuiItem(inventory, "combat-mode", configuredItem("combat-mode", Material.SHIELD,
                "&fCombat mode: {mode}", Arrays.asList("&7Click to cycle: NORMAL, SHIELD, SHIELD_STRAFE"),
                "{mode}", settings.mode));
        setGuiItem(inventory, "bot-name", configuredItem("bot-name", Material.NAME_TAG,
                "&aBot Name: {name}", Arrays.asList("&7Click to enter a bot name"),
                "{name}", settings.name.isBlank() ? "Default" : settings.name));
        setGuiItem(inventory, "bot-skin", configuredItem("bot-skin", Material.PLAYER_HEAD,
                "&dBot Skin: {skin}", Arrays.asList("&7Click to enter a skin name"),
                "{skin}", settings.skin.isBlank() ? "Default" : settings.skin));
        setGuiItem(inventory, "teleport", configuredItem("teleport", Material.ENDER_PEARL,
                "&eTeleport Bot", Arrays.asList("&7Click to teleport your bot to you")));
        setGuiItem(inventory, "clear", configuredItem("clear", Material.REDSTONE,
                "&cClear Bot", Arrays.asList("&7Click to remove your active bot")));
        setGuiItem(inventory, "deploy", configuredItem("deploy", Material.LIME_WOOL,
                "&aDeploy Bot", Arrays.asList("&7Click to start training")));
        player.openInventory(inventory);
    }

    private ItemStack armorItem(String materialName, String slot, String enchantment) {
        Material material = Material.matchMaterial(materialName + "_" + slot.toUpperCase());
        if (material == null) {
            material = Material.matchMaterial("DIAMOND_" + slot.toUpperCase());
        }
        String key = slot.toLowerCase();
        Map<String, String> placeholders = new HashMap<>();
        placeholders.put("{material}", materialName);
        placeholders.put("{enchant}", enchantment);
        placeholders.put("{slot}", slot);
        return configuredItem(key, material, "&b{slot}: {material}",
                slot.equals("Leggings") || slot.equals("Boots")
                        ? Arrays.asList("&7Left click: Diamond/Netherite", "&7Right click: {enchant}")
                        : Arrays.asList("&7Left click: Diamond/Netherite", "&7Full enchants: {enchant}"),
                placeholders);
    }

    private void setGuiItem(Inventory inventory, String key, ItemStack item) {
        int slot = getConfig().getInt("gui.items." + key + ".slot", getDefaultGuiSlot(key));
        if (slot >= 0 && slot < inventory.getSize()) {
            inventory.setItem(slot, item);
        }
    }

    private int getDefaultGuiSlot(String key) {
        return switch (key) {
            case "helmet" -> 0;
            case "chestplate" -> 1;
            case "leggings" -> 2;
            case "boots" -> 3;
            case "movement" -> 10;
            case "totems" -> 12;
            case "slow-falling" -> 14;
            case "combat-mode" -> 16;
            case "bot-name" -> 19;
            case "bot-skin" -> 21;
            case "teleport" -> 22;
            case "clear" -> 23;
            case "deploy" -> 25;
            default -> -1;
        };
    }

    private int getGuiSize() {
        int size = getConfig().getInt("gui.size", 27);
        if (size < 9 || size > 54 || size % 9 != 0) {
            return 27;
        }
        return size;
    }

    private ItemStack configuredItem(String key, Material fallback, String defaultName, List<String> defaultLore,
                                     String... placeholder) {
        Map<String, String> placeholders = new HashMap<>();
        for (int i = 0; i + 1 < placeholder.length; i += 2) {
            placeholders.put(placeholder[i], placeholder[i + 1]);
        }
        return configuredItem(key, fallback, defaultName, defaultLore, placeholders);
    }

    private ItemStack configuredItem(String key, Material fallback, String defaultName, List<String> defaultLore,
                                     Map<String, String> placeholders) {
        Material material = Material.matchMaterial(getConfig().getString("gui.items." + key + ".material", ""));
        if (material == null) {
            material = fallback;
        }
        String name = getConfig().getString("gui.items." + key + ".name", defaultName);
        List<String> lore = getConfig().getStringList("gui.items." + key + ".lore");
        if (lore.isEmpty()) {
            lore = defaultLore;
        }