bhiwapureujwala-del

Create a premium-quality Minecraft plugin called SpearSMP for Paper 1.21.11 using Java 21 and Maven.

The plugin must be production-ready, optimized, multiplayer-safe, and use clean object-oriented design. Do not use deprecated APIs. It must compile without errors or warnings.

The plugin should include ONLY 4 legendary spears with unique abilities, effects, cooldown system, and full configuration support.

4 Legendary Spears

🔥 Fire Spear

Ability: Shift + Right Click

  • Launch a fire wave that damages enemies.
  • Sets enemies on fire for 8 seconds.
  • Small explosion effect on hit.
  • Fire particles and blaze sounds.
  • Passive: Fire Resistance while holding.

Cooldown: 15 seconds

🌌 Void Spear

Ability 1: Shift + Right Click

  • Teleport to the block you are looking at (max 60 blocks).
  • Void particles + teleport sound.
  • No fall damage for 5 seconds after teleport.

Ability 2: Shift + Left Click

  • Pull targeted player to your location (max 40 blocks).

Cooldown: 15–20 seconds

⚡ Thunder Spear

Ability: Shift + Right Click

  • Strike lightning on all enemies within 15 blocks.
  • Stun enemies for 2 seconds.
  • Electric particles and thunder sound effects.

Cooldown: 18 seconds

☠ Poison Spear

Ability: Shift + Right Click

  • Poison all nearby enemies for 10 seconds.
  • Apply Weakness II.
  • Green poison cloud particles.

Cooldown: 15 seconds

---

Core Features (All Spears)

  • Custom Model Data support
  • Custom name and lore
  • Enchanted glowing effect
  • Unique particles and sounds per spear
  • Action Bar cooldown display
  • Boss Bar during ability use
  • No durability loss
  • Cannot be crafted or duplicated
  • Works only in main hand
  • Balanced PvP design

---

Commands

/spear give fire <player> /spear give void <player> /spear give thunder <player> /spear give poison <player> /spear give all DemonGamerZZZZZ

Only OP or players with permission spearsmp.admin can use commands.

Only player "DemonGamerZZZZZ" can use /spear give all.

---

INVENTORY GUI

Create a /spear INVENTORY GUI menu:

  • Shows all 4 spears
  • Click to receive spear (OP only)
  • Clean and visually appealing inventory menu

---

Configuration Files

Include fully configurable:

  • config.yml (damage, cooldowns, particles, sounds)
  • messages.yml (all plugin messages)

---

Project Output

Generate complete Maven project with:

  • Full Java source code
  • plugin.yml
  • config.yml
  • messages.yml
  • pom.xml
  • Proper package structure
  • Clean modular architecture (handlers, listeners, managers, utils)

---

Requirements

  • Paper 1.21.11 compatible
  • Java 21
  • No errors or warnings
  • High performance and multiplayer-safe
  • Easy to extend with new spears
Kodari AI
KodariJul 4 at 2:47 pm 2

I’ll create the SpearSMP plugin — a Paper 1.21.11 legendary spears plugin with 4 unique abilities, GUI, commands, and full configuration.

SpearSMP
A premium Paper 1.21.11 plugin featuring 4 legendary spears with unique abilities. Fire Spear launches fire waves, Void Spear teleports and pulls enemies, Thunder Spear strikes lightning and stuns, Poison Spear applies poison and weakness. Includes cooldown system, action bar displays, boss bar effects, custom model data support, GUI menu, and full configuration.
Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
18 1,344
src/main/java/com/spearsmp/SpearSMP.java
package com.spearsmp;

import com.spearsmp.command.SpearCommand;
import com.spearsmp.config.ConfigManager;
import com.spearsmp.config.MessageManager;
import com.spearsmp.listener.SpearListener;
import com.spearsmp.manager.CooldownManager;
import com.spearsmp.manager.GUIManager;
import org.bukkit.plugin.java.JavaPlugin;

public final class SpearSMP extends JavaPlugin {

    private ConfigManager configManager;
    private MessageManager messageManager;
    private CooldownManager cooldownManager;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.messageManager = new MessageManager(this);
        this.cooldownManager = new CooldownManager(this);
        this.guiManager = new GUIManager(this);

        getServer().getPluginManager().registerEvents(new SpearListener(this), this);
        getCommand("spear").setExecutor(new SpearCommand(this));

        getLogger().info("SpearSMP v" + getDescription().getVersion() + " enabled!");
    }

    @Override
    public void onDisable() {
        this.cooldownManager.shutdown();
        getLogger().info("SpearSMP disabled!");
    }

    public ConfigManager cfg() {
        return configManager;
    }

    public MessageManager msg() {
        return messageManager;
    }

    public CooldownManager cooldownManager() {
        return cooldownManager;
    }

    public GUIManager guiManager() {
        return guiManager;
    }
}