Implement the full Wither SMP concept as a Paper plugin for Minecraft 1.21.11, Java, multiplayer-safe. The user confirmed Paper and 1.21.11. Work in the project's existing scaffold; inspect it first and follow its conventions. Implement feature code only; do not add tests or test files, and do not attempt builds.

Requirements: 1) Wither Souls: persistent per-player count, min 0/max 3. A player kill drops one unique Wither Soul Bottle (cap drops/collection sensibly at 3; if killer already at cap do not lose the ability to pick up ordinary items). Players collect the unique bottle by right-clicking it; validate its custom item identity, prevent duplicate exploits, and persist soul count. Black bottle/red accent using native item name/lore/model data where practical. Ability unlocks: 1=Shadow Dash, 2=Shadow Orbs, 3=Wither Flowers. 2) Commands EXACTLY /wither.smp.ability1, /wither.smp.ability2, /wither.smp.ability3, and admin-only /identyhide <player> (preserve the concept's spelling identyhide). Add permissions, useful player feedback, and sensible console/invalid-target handling. If dotted command labels need special registration under Paper, implement a reliable way to expose exactly those command strings and document their use. 3) Shadow Dash: 10-block forward dash, 30-second cooldown, requires 1 soul. Safe collision-aware movement; never break blocks. Create black/red shadow-afterimage particles behind the user and briefly blind nearby opponents (choose a short reasonable duration); visual remnants fade after 0.5 sec. 4) Shadow Orbs: 2 black/red glowing visual orbs, maximum target range 120 blocks, 4 HP direct + 2 HP explosion damage, 3-minute cooldown, requires 2 souls. Orbs circle the user on activation and launch only after the user hits an enemy or a block; choose a reliable Paper-native interaction interpretation and make controls clear to the user. Handle projectile hits, damage, and a 2-HP non-block-damaging explosion. Never alter/destroy blocks. Prevent friendly/self damage if sensible. Clean up all temporary entities/tasks on hit, expiry, player quit, and plugin shutdown. 5) Wither Flowers: black particle circle radius 4 blocks, lasts 15 seconds, applies Wither I to opponents in its area but never the user, 90-second cooldown, requires 3 souls. Periodically check area; remove all related tasks after expiry/logout/shutdown. 6) Identity Hide: /identyhide <player> toggles/sets a persistent hidden state for admins only. Hide the username using §k in nametag and player-list display where supported. Make the player's visible appearance as black as Paper's native API allows; preserve/restore the target's existing armor/equipment safely rather than permanently destroying their items. State persists over logout/rejoin and kills; death disables it and restores normal appearance/name. Persist state and any required restoration data. If fully blackening a vanilla player skin is not possible without client-side resource packs/NMS/dependencies, implement the safest native approximation and make that limitation explicit in the project's README/config docs rather than promising unsupported visual behavior. 7) Potion restrictions: block Poison potions (drinkable/splash/lingering) and any Wither potions if available, including potion use and thrown splash/lingering effects. Do not block Weakness or other normal potions. Prevent brewing poison/wither variants if feasible. Ensure effects cannot be applied through potion projectile impact. 8) Cooldowns: server-authoritative, separate per ability. On attempted use during cooldown, show remaining time in a red action-bar/hotbar message for 5 seconds; avoid flooding with duplicate tasks/messages. Persist cooldowns across quit/restart if practical and consistent with robust anti-exploit behavior. Provide configurable sensible messages/visual settings if scaffold supports it.

General: black/red design, no ability may break blocks; all per-player data persistent, defensive input validation, cleanup on disable, avoid unsafe async world access. Add/update README with commands, permissions, mechanics, configuration and any unavoidable API limitation. Do not add dependencies unless existing scaffold already requires them. Implement the complete plugin and report what files/features were changed and any limitation; do not claim compiled/tested.

Kodari AI
KodariNov 10 at 5:54 am 3
WitherSMPAbilities
A comprehensive Paper plugin for Minecraft 1.21.11 implementing the Wither SMP concept with persistent player soul collection and three unlockable abilities. Players collect Wither Soul Bottles from kills (max 3 souls) unlocking Shadow Dash, Shadow Orbs, and Wither Flowers abilities. Shadow Dash provides a 10-block forward dash with 30-second cooldown and shadow particles. Shadow Orbs launch two glowing projectiles dealing 4 HP direct and 2 HP explosion damage with 3-minute cooldown. Wither Flowers creates a withering particle circle lasting 15 seconds with 90-second cooldown. Includes admin-only /identyhide command for persistent identity hiding using §k nametag obfuscation and blackened appearance approximation. Features server-authoritative cooldowns with action-bar feedback, poison/wither potion restrictions, defensive validation, and complete cleanup on disable.

I’ll build the Paper plugin with persistent souls and cooldowns, the three abilities, identity hiding, potion restrictions, and command documentation.

Implemented the Wither SMP plugin with persistent souls and cooldowns, all four commands, the three abilities, identity hiding, and potion restrictions. Added configuration and a README covering commands and mechanics.

Limitation: Paper’s native API cannot blacken a player’s skin; identity hiding uses obfuscated names and viewer-only black armor instead.

The project was not compiled or tested.

King_Semi king_Semi

cann you just give him a skin

Kodari AI
KodariNov 10 at 5:58 am 1

Yes—if you provide a URL to a black Minecraft skin, I can use it for Identity Hide and restore the player’s original skin afterward.

To create a new skin, enable Kodari Studio in project settings → Generation, or for all projects at https://kodari.ai/settings?tab=features.

King_Semi king_Semi

you cann just get the skin from a user calld uH3WR2v0ti0uTHJ

Kodari AI
KodariNov 10 at 6:07 am 7

I’ll use that account’s skin for Identity Hide and restore each player’s original profile when hiding ends.

Identity Hide now uses the skin of uH3WR2v0ti0uTHJ and restores the player’s original profile when hiding ends. The skin requires a successful Mojang lookup; armor can still cover it.

Not compiled or tested.

King_Semi king_Semi

oke evreything the ablttiys and stuff

Kodari AI
KodariNov 10 at 6:08 am 1

Do you mean you’d like me to check that all the abilities and other features are implemented correctly?

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
settings.gradle
Code
6 542
src/main/java/com/kodari/withersmp/WitherSMP.java
package com.kodari.withersmp;

import com.destroystokyo.paper.profile.PlayerProfile;
import com.destroystokyo.paper.profile.ProfileProperty;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
import org.bukkit.Bukkit;
import org.bukkit.Color;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.Particle;
import org.bukkit.Sound;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.AreaEffectCloud;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Item;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.entity.Projectile;
import org.bukkit.entity.ThrownPotion;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.entity.EntityPotionEffectEvent;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.entity.PotionSplashEvent;
import org.bukkit.event.entity.LingeringPotionSplashEvent;
import org.bukkit.event.inventory.BrewEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerItemConsumeEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.inventory.EquipmentSlot;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.inventory.meta.LeatherArmorMeta;
import org.bukkit.inventory.meta.PotionMeta;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.scheduler.BukkitTask;
import org.bukkit.scoreboard.Scoreboard;
import org.bukkit.scoreboard.Team;
import org.bukkit.util.RayTraceResult;
import org.bukkit.util.Vector;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;

public final class WitherSMP extends JavaPlugin implements Listener {
    private final Map<UUID, Integer> souls = new HashMap<>();
    private final Map<UUID, long[]> cooldowns = new HashMap<>();
    private final Set<UUID> hidden = new HashSet<>();
    private final Set<String> redeemed = new HashSet<>();
    private final Map<UUID, String> previousTeams = new HashMap<>();
    private final Map<UUID, PlayerProfile> originalProfiles = new HashMap<>();
    private ProfileProperty hiddenSkin;
    private final Map<UUID, List<BukkitTask>> tasks = new HashMap<>();
    private final Map<UUID, BukkitTask> cooldownDisplays = new HashMap<>();
    private final Map<UUID, ArmedOrbs> armed = new HashMap<>();
    private File dataFile;
    private YamlConfiguration data;
    private NamespacedKey bottleKey;
    private Team hiddenTeam;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        bottleKey = new NamespacedKey(this, "soul-id");
        dataFile = new File(getDataFolder(), "players.yml");
        data = YamlConfiguration.loadConfiguration(dataFile);
        redeemed.addAll(data.getStringList("redeemed"));
        if (data.isConfigurationSection("players")) {
            for (String key : data.getConfigurationSection("players").getKeys(false)) {
                try {
                    UUID id = UUID.fromString(key);
                    String path = "players." + key + ".";
                    souls.put(id, Math.max(0, Math.min(3, data.getInt(path + "souls"))));
                    cooldowns.put(id, new long[]{data.getLong(path + "cooldown1"), data.getLong(path + "cooldown2"), data.getLong(path + "cooldown3")});
                    if (data.getBoolean(path + "hidden")) hidden.add(id);
                } catch (IllegalArgumentException ex) {
                    getLogger().warning("Invalid player UUID in players.yml: " + key);
                }
            }
        }
        Scoreboard board = Bukkit.getScoreboardManager().getMainScoreboard();
        hiddenTeam = board.getTeam("wither_hidden");
        if (hiddenTeam == null) hiddenTeam = board.registerNewTeam("wither_hidden");
        hiddenTeam.setPrefix("§k");
        hiddenTeam.setSuffix("§r");
        Bukkit.getPluginManager().registerEvents(this, this);
        Bukkit.createProfile("uH3WR2v0ti0uTHJ").update().whenComplete((profile, error) -> {
            if (!isEnabled()) return;
            Bukkit.getScheduler().runTask(this, () -> {
                if (error != null || profile == null || !profile.hasTextures()) {
                    getLogger().warning("Could not load the Identity Hide skin for uH3WR2v0ti0uTHJ; using players' normal skins.");
                    return;
                }
                hiddenSkin = profile.getProperties().stream().filter(property -> property.getName().equals("textures")).findFirst().orElse(null);
                if (hiddenSkin == null) return;
                for (UUID id : new HashSet<>(hidden)) {
                    Player player = Bukkit.getPlayer(id);
                    if (player != null) applyHiddenSkin(player);
                }
            });
        });
        for (Player player : Bukkit.getOnlinePlayers()) if (hidden.contains(player.getUniqueId())) applyHidden(player);
    }

    @Override
    public void onDisable() {
        for (UUID id : new HashSet<>(tasks.keySet())) cancelTasks(id);
        for (BukkitTask task : cooldownDisplays.values()) task.cancel();
        for (Player player : Bukkit.getOnlinePlayers()) if (hidden.contains(player.getUniqueId())) restoreAppearance(player);
        if (hiddenTeam != null) hiddenTeam.unregister();
        saveData();
    }

    private void saveData() {
        for (UUID id : souls.keySet()) data.set("players." + id + ".souls", souls.get(id));
        for (Map.Entry<UUID, long[]> entry : cooldowns.entrySet()) {
            for (int i = 0; i < 3; i++) data.set("players." + entry.getKey() + ".cooldown" + (i + 1), entry.getValue()[i]);
        }
        if (data.isConfigurationSection("players")) {
            for (String id : data.getConfigurationSection("players").getKeys(false)) data.set("players." + id + ".hidden", false);
        }
        for (UUID id : hidden) data.set("players." + id + ".hidden", true);
        data.set("redeemed", new ArrayList<>(redeemed));
        try { data.save(dataFile); } catch (IOException ex) { getLogger().severe("Could not save player data: " + ex.getMessage()); }
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (command.getName().equalsIgnoreCase("identyhide")) {
            if (!sender.hasPermission("withersmp.identyhide")) { sender.sendMessage("§cYou do not have permission."); return true; }
            if (args.length != 1) { sender.sendMessage("§cUsage: /identyhide <player>"); return true; }
            Player target = Bukkit.getPlayerExact(args[0]);
            if (target == null) { sender.sendMessage("§cThat player is not online."); return true; }
            if (hidden.remove(target.getUniqueId())) { restoreAppearance(target); sender.sendMessage("§aIdentity hiding disabled for " + target.getName() + "."); }
            else { hidden.add(target.getUniqueId()); applyHidden(target); sender.sendMessage("§cIdentity hiding enabled for " + target.getName() + "."); }
            saveData();
            return true;
        }
        if (!(sender instanceof Player player)) { sender.sendMessage("Only players can use abilities."); return true; }
        if (!player.hasPermission("withersmp.ability")) { player.sendMessage("§cYou do not have permission."); return true; }
        int ability = switch (command.getName().toLowerCase()) {
            case "wither.smp.ability1" -> 1;
            case "wither.smp.ability2" -> 2;
            case "wither.smp.ability3" -> 3;
            default -> 0;
        };
        if (ability == 0) return false;
        if (args.length != 0) { player.sendMessage("§cThis command takes no arguments."); return true; }
        if (souls.getOrDefault(player.getUniqueId(), 0) < ability) { player.sendMessage("§cYou need " + ability + " Wither Soul(s) to use this ability."); return true; }
        long[] times = cooldowns.computeIfAbsent(player.getUniqueId(), k -> new long[3]);
        if (times[ability - 1] > System.currentTimeMillis()) { showCooldown(player, times[ability - 1]); return true; }
        times[ability - 1] = System.currentTimeMillis() + (ability == 1 ? 30_000L : ability == 2 ? 180_000L : 90_000L);
        saveData();
        if (ability == 1) dash(player);
        else if (ability == 2) armOrbs(player);
        else flowers(player);
        return true;
    }

    private void showCooldown(Player player, long end) {
        UUID id = player.getUniqueId();
        BukkitTask old = cooldownDisplays.remove(id);
        if (old != null) old.cancel();
        final int[] ticks = {0};
        BukkitTask task = Bukkit.getScheduler().runTaskTimer(this, () -> {
            long seconds = Math.max(0, (end - System.currentTimeMillis() + 999) / 1000);
            player.sendActionBar(Component.text("Cooldown: " + seconds + "s", NamedTextColor.RED));
            if (++ticks[0] >= 5 || !player.isOnline()) {
                BukkitTask current = cooldownDisplays.remove(id);
                if (current != null) current.cancel();
            }
        }, 0L, 20L);
        cooldownDisplays.put(id, task);
    }

    private void track(UUID id, BukkitTask task) { tasks.computeIfAbsent(id, k -> new ArrayList<>()).add(task); }
    private void cancelTasks(UUID id) {
        List<BukkitTask> list = tasks.remove(id);
        if (list != null) for (BukkitTask task : list) task.cancel();