sheepire

Create a Minecraft Paper 1.21.11 plugin named Ashhollow Magic for a fantasy roleplay SMP.

Overview The plugin adds magical abilities for five kingdoms. Every player can only use the abilities of the kingdom they belong to.

The kingdoms are: 🌑 Shadow Kingdom 🌿 Nature Kingdom ❄️ Ice Kingdom 🌊 Water Kingdom 🔥 Fire Kingdom The plugin must be optimized for multiplayer survival and roleplay.

Features Kingdom System /kingdom join <kingdom> /kingdom leave /kingdom info /magic reload Players cannot use abilities from another kingdom.

Admins can assign kingdoms.

Mana System Every player has:

Max Mana: 100 Mana regenerates over time.

Every spell consumes mana.

Mana values must be configurable.

Cooldowns Every ability has:

Individual cooldown Configurable cooldown Action bar or boss bar cooldown display Shadow Kingdom Passive:

Night Vision Faster movement in darkness Abilities:

Shadow Dash Shadow Cloak Shadow Chains Shadow Step Ultimate:

Shadow Rift Particles:

Black smoke Soul particles Purple particles Nature Kingdom Passive:

Faster crop growth nearby Small passive regeneration Abilities:

Nature Heal Vine Trap Thorn Shot Leaf Glide Ultimate:

Forest Guardian Particles:

Happy Villager Leaves Green dust Ice Kingdom Passive:

Walk on water by freezing it Freeze immunity Abilities:

Ice Spike Ice Wall Frost Nova Frozen Shield Ultimate:

Blizzard Particles:

Snowflakes White dust Ice effects Water Kingdom Passive:

Water Breathing Dolphins Grace Abilities:

Water Jet Healing Rain Water Shield Whirlpool Ultimate:

Tidal Wave Particles:

Splash Bubble Blue dust Fire Kingdom Passive:

Fire Resistance Lava walking for a short duration Abilities:

Fireball Flame Dash Flame Wave Burning Aura Ultimate:

Inferno Particles:

Flame Lava Smoke Configuration Everything must be configurable inside config.yml.

Each ability should have: enabled mana_cost cooldown damage duration range particle sound Kingdom permissions should also be configurable.

Compatibility Minecraft Paper 1.21.11 PlaceholderAPI support Vault support (optional) No MythicMobs dependency Performance Must support 100+ players.

Avoid lag.

No memory leaks.

Proper async tasks where possible.

Files Generate:

Full Java source code plugin.yml config.yml messages.yml README.md Well-commented code No placeholder code or TODOs.

Kodari AI
KodariJul 21 at 5:28 pm 13
AshhollowMagic
A fantasy roleplay magic plugin for a Paper 1.21.11 survival SMP. It assigns players to Shadow, Nature, Ice, Water, or Fire kingdoms and grants each kingdom configurable passives, regular spells, and ultimate abilities. The plugin includes persistent kingdom membership, regenerating mana, per-ability cooldowns with action-bar feedback, configurable permissions and messages, temporary environmental effects, efficient multiplayer-safe scheduling, optional PlaceholderAPI placeholders, and optional Vault economy integration.
  1. Core platform and persistence: create the Paper plugin bootstrap, kingdom data model, persistent player kingdom storage, and configurable message service.

  2. Gameplay systems: add mana regeneration, cooldown tracking, passives, environmental effects, and all five kingdoms’ configurable spells and ultimates.

  3. Commands and integrations: implement /kingdom, /magic, tab completion, optional PlaceholderAPI support, optional Vault detection, and plugin metadata.

  4. Configuration and documentation: provide complete configuration, messages, build files, and usage documentation.

A fantasy magic system for a Paper 1.21.11 roleplay SMP. Players join one of five configurable kingdoms—Shadow, Nature, Ice, Water, or Fire—and receive exclusive passive traits, spells, and ultimate abilities. The plugin provides mana regeneration, per-ability costs and cooldowns, action-bar feedback, persistent kingdom membership, admin assignment, configurable particles, sounds, damage, ranges, durations, permissions, PlaceholderAPI support, and optional Vault detection while remaining optimized for large survival servers.

Created the complete Ashhollow Magic project, including:

  • Full Java source code for kingdom management, mana, cooldowns, passives, spells, commands, and integrations.

  • Five kingdoms with four abilities each, including ultimates.

  • Configurable config.yml and messages.yml.

  • Persistent player kingdom membership.

  • /kingdom and /magic commands with tab completion.

  • PlaceholderAPI expansion and optional Vault detection.

  • Paper plugin.yml.

  • Gradle build configuration for Paper 1.21.11 and Java 21.

  • README with installation, command, ability, permission, and placeholder documentation.

Kodari can make mistakes. Review important code before using.
Files
src
Ashhollow Magic
build.gradle
README.md
settings.gradle
Code
18 1,459
src/main/java/com/ashhollow/magic/AshhollowMagic.java
package com.ashhollow.magic;

import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

public class AshhollowMagic extends JavaPlugin {
    private MessageService messages;
    private KingdomManager kingdoms;
    private ManaManager mana;
    private CooldownManager cooldowns;
    private SpellManager spells;
    private Economy economy;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("messages.yml", false);

        messages = new MessageService(this);
        kingdoms = new KingdomManager(this);
        mana = new ManaManager(this);
        cooldowns = new CooldownManager();
        spells = new SpellManager(this, kingdoms, mana, cooldowns);

        mana.start();
        getServer().getPluginManager().registerEvents(
                new PassiveListener(this, kingdoms, mana, cooldowns), this);

        KingdomCommand kingdomCommand = new KingdomCommand(this);
        MagicCommand magicCommand = new MagicCommand(this);
        getCommand("kingdom").setExecutor(kingdomCommand);
        getCommand("kingdom").setTabCompleter(kingdomCommand);
        getCommand("magic").setExecutor(magicCommand);
        getCommand("magic").setTabCompleter(magicCommand);

        getServer().getScheduler().runTaskTimer(this, cooldowns::cleanup, 1200L, 1200L);
        setupVault();
        if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")
                && getConfig().getBoolean("integrations.placeholderapi", true)) {
            new PlaceholderHook(this).register();
        }
    }

    @Override
    public void onDisable() {
        mana.stop();
    }

    public void reloadPlugin() {
        reloadConfig();
        messages.reload();
    }

    private void setupVault() {
        if (!getConfig().getBoolean("integrations.vault", true)
                || !Bukkit.getPluginManager().isPluginEnabled("Vault")) {
            return;
        }
        RegisteredServiceProvider<Economy> registration =
                getServer().getServicesManager().getRegistration(Economy.class);
        if (registration != null) {
            economy = registration.getProvider();
        }
    }

    public MessageService messages() {
        return messages;
    }

    public KingdomManager kingdoms() {
        return kingdoms;
    }

    public ManaManager mana() {
        return mana;
    }

    public CooldownManager cooldowns() {
        return cooldowns;
    }

    public SpellManager spells() {
        return spells;
    }

    public Economy economy() {
        return economy;
    }
}