__voidknight

a plugin that makes the dragon egg give glowing to the holder, gives them 2x the inventory space, makes the egg unplaceable, and gives it an ability called: "Dragon's Domain" - makes a sphere that is impossible to escape and makes everyone but the user unable to move (minecraft version 1.21.11)

Kodari AI
KodariApr 11 at 6:26 pm 13,678 (v2)

I’ll create a dragon egg enhancement plugin with powerful abilities.

DragonEggPower
Enhances the dragon egg with powerful abilities including a glowing effect for the holder, doubled inventory space through a virtual backpack system, unplaceable protection, and the Dragon's Domain ability that creates an inescapable sphere trapping all players except the user. Features configurable cooldowns, durations, and particle effects for the ultimate dragon egg experience.

DragonEggPower plugin created! Features include glowing effect for dragon egg holders, doubled inventory via backpack system, unplaceable protection, and the Dragon’s Domain ability that creates a particle sphere trapping all nearby players except the user with movement restrictions and potion effects. All functionality is fully configurable.

__voidknight

make the sphere out of purple concrete and make it hollow

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
11 772
src/main/java/com/dragonpower/DragonEggPlugin.java
package com.dragonpower;

import com.dragonpower.commands.DragonEggCommand;
import com.dragonpower.data.PlayerData;
import com.dragonpower.listeners.DragonEggListener;
import com.dragonpower.managers.AbilityManager;
import com.dragonpower.managers.BackpackManager;
import com.dragonpower.managers.DataManager;
import com.dragonpower.managers.GlowingManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

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

@Getter
public class DragonEggPlugin extends JavaPlugin {

    private DataManager dataManager;
    private AbilityManager abilityManager;
    private GlowingManager glowingManager;
    private BackpackManager backpackManager;
    private Map<UUID, PlayerData> playerData;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.playerData = new HashMap<>();
        this.dataManager = new DataManager(this);
        this.abilityManager = new AbilityManager(this);
        this.glowingManager = new GlowingManager(this);
        this.backpackManager = new BackpackManager(this);
        
        Bukkit.getPluginManager().registerEvents(new DragonEggListener(this), this);
        getCommand("dragonegg").setExecutor(new DragonEggCommand(this));
        
        glowingManager.start();
        
        getLogger().info("DragonEggPower has been enabled!");
    }

    @Override
    public void onDisable() {
        if (glowingManager != null) {
            glowingManager.stop();
        }
        if (dataManager != null) {
            dataManager.saveAll();
        }
        getLogger().info("DragonEggPower has been disabled!");
    }

    public PlayerData getPlayerData(UUID uuid) {
        return playerData.computeIfAbsent(uuid, k -> new PlayerData(uuid));
    }

    public String getMessage(String path) {
        String prefix = getConfig().getString("messages.prefix", "&5[DragonEgg] &7");
        String message = getConfig().getString("messages." + path, "");
        return colorize(prefix + message);
    }

    public String getAbilityMessage(String path) {
        return colorize(getConfig().getString("dragon-egg.ability.message." + path, ""));
    }

    public String colorize(String text) {
        return text.replace("&", "§");
    }
}