adarshtoppo001-rgb

Name- Phantom SMP version 1.21.11starts with 10 souls by default and respawns with 3 souls. Souls never decrease from natural death and can only increase or decrease through player kills or mob drops. Souls are permanently displayed on the screen corners for constant visibility. The action bar dynamically shows the player’s soul count in red, the plugin name PhantomSMP S3 in purple, and the currently equipped crown name. The action bar updates in real time whenever the player gains or loses souls, switches crowns, or activates crown abilities.

When a player wearing a crown reaches zero souls, they are permanently banned from the server and receive the message “You are banned from Phantom SMP.” Crowns do not drop on player kills or deaths and remain bound to the player until permanent ban.

The revive system is command-based. Any player can use the command /phantomsmp revive (playername). To execute this command, the player must have at least 6 souls. Upon successful execution, 5 souls are automatically removed from the executor and the specified banned player is immediately unbanned. The command only works if the target player was permanently banned due to reaching zero souls.

Mobs drop souls based on their power level. Higher-tier mobs have a higher chance to drop souls. Special high-level mobs such as Wither, Warden, and Ender Dragon have a 90 percent chance to drop a soul. Players collect souls by right-clicking the dropped soul item, which increases their soul count. Souls can also be withdrawn as items using the command /phantomsmp withdraw (amount), allowing players to store and transfer souls in their inventory.

The plugin includes admin-only commands. /phantomsmp start gives a special Soul Item to all online players and automatically grants it to all players who join afterward. This Soul Item cannot be placed, dropped, or destroyed under any circumstance, including lava, cactus, or the void. If it falls into the void, it instantly returns to the player’s inventory and replaces the last item if the inventory is full. Clicking this item activates the crown assignment system, displaying a massive random circular visual around the player while crown names cycle rapidly before one final crown is permanently assigned. The spin system is strictly one-time use per player. The player may receive either a new crown or a duplicate. /phantomsmp INVENTORY GUI opens a INVENTORY GUI displaying all crowns, which admins can take infinitely. /phantomsmp soul (amount) allows admins to grant themselves a specified number of souls.

All crowns are completely unplaceable, undroppable, and indestructible. If a crown falls into the void, it immediately returns to the player’s inventory and replaces the last item if the inventory is full. Each crown has its own independent cooldown, and switching to another crown does not transfer or share cooldowns.

All crown abilities activate only on double crouch. When the player double crouches, a circular particle wave spreads in a 10 block radius around the player. Only entities inside this radius are marked and affected by the ability. Crown abilities never damage their owner.

Blade Crown summons a rotating blade particle that orbits the player and continuously damages all marked entities within range.

Orbital Crown launches the player high into the air and on landing creates a massive explosion effect similar to a charged creeper blast, damaging all marked entities.

Laser Crown summons a circular particle indicator above the enemy and fires continuous laser particles downward, dealing sustained damage.

Cage Crown creates a circular cage-like particle structure around the enemy. The trapped target cannot move, attack, use items, or activate abilities. Only the crown holder can interact freely.

Blackhole Crown summons a black hole that pulls marked enemies inward, then explodes and launches them upward and forward.

Connector Crown links the health of all marked enemies. Damaging one enemy damages all linked enemies equally. Every hit on linked enemies heals the crown holder by the same amount of damage dealt.

The soul system must correctly display 10 souls on first join instead of 0. If the soul value ever reaches 0, the permanent ban system must trigger immediately. All displays, cooldowns, abilities, commands, and mechanics must function in real time without delay or desynchronization.

Kodari AI
KodariFeb 26 at 11:23 am 25,210 (v2)

I’ll create a comprehensive Phantom SMP plugin with soul system, crown mechanics, and all requested features.

PhantomSMP
A competitive soul-based survival plugin featuring dynamic crown abilities, permanent death mechanics, and strategic revival systems. Players manage souls through combat and mob hunting while wielding powerful crowns with unique abilities. Includes real-time action bar displays, seven distinct crown types with independent cooldowns, mob soul drops, revive commands, and permanent ban mechanics. Crown abilities activate via double-crouch with 10-block radius particle effects and targeted entity marking.

All files created successfully! The PhantomSMP plugin features a comprehensive soul management system with:

  • Soul System: Players start with 10 souls, respawn with 3, gain/lose through combat

  • 7 Unique Crowns: Blade, Orbital, Laser, Cage, Blackhole, Connector, and Basic with independent cooldowns

  • Double-Crouch Activation: 10-block radius particle marking and targeted abilities

  • Permanent Ban System: Zero souls with crown = permanent ban

  • Revive Command: /phantomsmp revive costs 5 souls (requires 6)

  • Real-time Action Bar: Displays souls (red) | PhantomSMP S3 (purple) | Crown name

  • Mob Soul Drops: Configurable drop chances (Wither/Warden/Dragon: 90%)

  • Admin Commands: /phantomsmp start, /phantomsmp gui, /phantomsmp soul

  • Indestructible Items: Crowns and soul items cannot be dropped, placed, or destroyed

  • Void Protection: Items return to inventory automatically

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
29 1,926
src/main/java/com/phantomsmp/PhantomSMP.java
package com.phantomsmp;

import com.phantomsmp.commands.PhantomSMPCommand;
import com.phantomsmp.data.PlayerData;
import com.phantomsmp.listeners.*;
import com.phantomsmp.managers.*;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

@Getter
public class PhantomSMP extends JavaPlugin {
    
    private final Map<UUID, PlayerData> playerData = new HashMap<>();
    
    private SoulManager soulManager;
    private CrownManager crownManager;
    private ActionBarManager actionBarManager;
    private SpinManager spinManager;
    private BanManager banManager;
    private ReviveManager reviveManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        soulManager = new SoulManager(this);
        crownManager = new CrownManager(this);
        actionBarManager = new ActionBarManager(this);
        spinManager = new SpinManager(this);
        banManager = new BanManager(this);
        reviveManager = new ReviveManager(this);
        
        registerListeners();
        registerCommands();
        
        actionBarManager.startActionBarTask();
        
        for (Player player : Bukkit.getOnlinePlayers()) {
            loadPlayerData(player.getUniqueId());
        }
        
        getLogger().info("PhantomSMP v1.0.0 has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (actionBarManager != null) {
            actionBarManager.stopActionBarTask();
        }
        
        for (UUID uuid : playerData.keySet()) {
            savePlayerData(uuid);
        }
        
        getLogger().info("PhantomSMP has been disabled!");
    }
    
    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new JoinListener(this), this);
        getServer().getPluginManager().registerEvents(new DeathListener(this), this);
        getServer().getPluginManager().registerEvents(new MobDeathListener(this), this);
        getServer().getPluginManager().registerEvents(new InteractListener(this), this);
        getServer().getPluginManager().registerEvents(new CrouchListener(this), this);
        getServer().getPluginManager().registerEvents(new MoveListener(this), this);
        getServer().getPluginManager().registerEvents(new DropListener(this), this);
        getServer().getPluginManager().registerEvents(new InventoryListener(this), this);
    }
    
    private void registerCommands() {
        getCommand("phantomsmp").setExecutor(new PhantomSMPCommand(this));
    }
    
    public void loadPlayerData(UUID uuid) {
        PlayerData data = new PlayerData();
        data.setSouls(getConfig().getInt("settings.default-souls", 10));
        data.setFirstJoin(true);
        playerData.put(uuid, data);
    }
    
    public void savePlayerData(UUID uuid) {
        
    }
    
    public PlayerData getPlayerData(UUID uuid) {
        return playerData.computeIfAbsent(uuid, k -> {
            PlayerData data = new PlayerData();
            data.setSouls(getConfig().getInt("settings.default-souls", 10));
            data.setFirstJoin(true);
            return data;
        });
    }
}