Shay Shay

create me plugin for LegacySMP they have 6 custom items sword whit abbility 2 admin whit abbility sword and 2 custom armor and add lifsteal plugin evrytime ppl kill whit evrytime this give the heart and get staff commned and the cstom, item have and if i habve all armor this do me smoll

Kodari AI
KodariSep 5 at 9:34 am 1
LegacySMPCustomKit
Creates a comprehensive LegacySMP plugin with six custom items including four unique swords with special abilities, two admin-exclusive ability swords, and two custom armor sets. Implements a lifesteal mechanic where players gain hearts on every kill, with configurable heart rewards. Includes staff commands for managing custom items, granting items, and controlling lifesteal settings. Provides a full armor set bonus that grants the wearer a small size effect when all pieces are equipped, enhancing gameplay with visual and mechanical advantages.

[Generation stopped]

Shay Shay
๐Ÿ“Ž 1 file 1,307 chars
๐Ÿ“„
pasted-code-1788601012132.txt
txt 28 lines
โ–ถ
Create a custom Minecraft plugin for my server, LegacySMP.

The plugin should include:

6 custom items, each with unique names, lore, effects, and special abilities.
Custom swords with unique abilities and cooldowns.
2 powerful Admin Swords with special abilities that can only be obtained or used by staff.
2 custom armor sets, each with unique effects and abilities.
When a player wears a full custom armor set, they should receive an additional special set bonus/ability.
Add a complete Lifesteal system:

  
When a player kills another player, the killer gains 1 heart.
The player who dies loses 1 heart.
Add configurable minimum and maximum heart limits.
If a player reaches the minimum amount of hearts, there should be a configurable punishment or elimination system.
Add staff/admin commands to:

  
Give or remove hearts.
Set a player's hearts.
Give custom items, swords, and armor.
Reload the plugin configuration.
Add permissions for all staff commands and admin-only items.
Make all item names, lore, abilities, cooldowns, messages, heart settings, and other important options customizable through the config files.
Add clear messages and ability cooldown indicators for players.

The plugin should be optimized, reliable, and made for a modern Paper Minecraft server.
Kodari AI
KodariSep 5 at 9:36 am 1

The generation was stopped before any content could be produced.

Shay Shay
๐Ÿ“Ž 1 file 8,349 chars
๐Ÿ“„
pasted-code-1788601196802.txt
txt 389 lines
โ–ถ
Create a complete and high-quality custom Minecraft plugin for my server, **LegacySMP**.

The plugin should combine a full **Lifesteal system**, custom weapons, custom armor, special abilities, staff tools, permissions, cooldowns, and configurable messages.

## Core Requirements

The plugin should be made for a modern **Paper Minecraft server** and should be optimized, stable, cleanly coded, and easy to configure.

---

## Lifesteal System

Create a complete Lifesteal system with the following mechanics:

* Every player starts with a configurable amount of hearts.
* When a player kills another player:

  * The killer gains **1 heart**.
  * The player who died loses **1 heart**.
* Hearts must be permanently saved even after:

  * Server restart
  * Player disconnect
  * Plugin reload
* Add a configurable **maximum heart limit**.
* Players should never be able to go above the maximum heart limit.
* If a player reaches **0 hearts**, they should:

  * Instantly receive a permanent ban from the server.
  * Receive a configurable ban message.
  * Have their elimination stored by the plugin.
* The plugin should prevent bugs such as:

  * Losing multiple hearts from one death.
  * Receiving multiple hearts from one kill.
  * Farming hearts from invalid deaths.
  * Exploiting reconnects or respawns.

Add an admin revive system so staff can bring eliminated players back.

When a player is revived:

* Remove their ban.
* Restore a configurable amount of hearts.
* Allow them to join the server again normally.

---

## Custom Items

Create **6 custom items**.

Every custom item should have:

* Custom name.
* Custom lore.
* Unique ability.
* Custom cooldown.
* Custom particles.
* Custom sounds.
* Custom messages.
* Permission support if needed.
* Configurable damage/effect values.
* A unique identifier so players cannot create fake copies by renaming normal items.

The abilities should feel special and useful for an SMP server and should not just be normal vanilla enchantments.

Abilities can include things such as:

* Dash.
* Knockback attack.
* Temporary strength.
* Speed boost.
* Enemy debuffs.
* Area abilities.
* Defensive abilities.
* Temporary resistance.
* Special PvP effects.

Do not make all custom items feel the same.

Each item should have its own unique gameplay purpose.

---

## Custom Swords

Add special custom swords with powerful abilities.

Each sword should include:

* Custom display name.
* Custom lore.
* Custom damage.
* Custom enchantments.
* Unique ability.
* Ability cooldown.
* Particle effects.
* Sound effects.
* Player feedback when using the ability.
* Cooldown message when the ability is not ready.

Abilities should work correctly in PvP and should not activate accidentally.

---

## Admin Swords

Create **2 special Admin Swords**.

These swords should be extremely powerful and should only be usable by authorized staff members.

Requirements:

* Staff-only permission.
* Normal players should not be able to use their abilities even if they somehow obtain the sword.
* Unique abilities that are different from normal custom swords.
* Custom particles and sounds.
* Configurable cooldown.
* Configurable damage/effects.
* Clear staff-only identification in the lore.

Add protection so players cannot bypass the permission by:

* Dropping the item.
* Trading the item.
* Putting it in a chest.
* Renaming it.
* Copying its appearance.

---

## Custom Armor

Create **2 complete custom armor sets**.

Each armor set should contain:

* Helmet.
* Chestplate.
* Leggings.
* Boots.

Each armor piece should have:

* Custom name.
* Custom lore.
* Custom enchantments.
* Custom stats.
* Custom effects.

When a player equips the **entire armor set**, they should receive a special Full Set Bonus.

Examples of Full Set Bonuses:

* Extra health.
* Speed.
* Strength.
* Resistance.
* Regeneration.
* Reduced incoming damage.
* Unique custom ability.

The Full Set Bonus should:

* Activate only while wearing the full matching set.
* Instantly disappear if one armor piece is removed.
* Not activate if the player mixes pieces from different sets.
* Show a message or effect when activated.

---

## Abilities System

Create a proper ability system.

Abilities should support:

* Right-click abilities.
* Left-click abilities if required.
* Sneak + click abilities.
* Cooldowns.
* ActionBar cooldown display.
* Sound effects.
* Particle effects.
* Configurable durations.
* Configurable damage.
* Configurable radius.
* Configurable effect strength.

Make sure abilities cannot be spammed.

When an ability is on cooldown, show something like:

`Ability is on cooldown for 7.2 seconds.`

When it becomes available again, optionally notify the player.

---

## Staff Commands

Add complete staff/admin commands.

Example command structure:

`/legacysmp`
`/ls`

Commands should include:

`/ls hearts `
Shows the player's current hearts.

`/ls hearts add  `
Adds hearts.

`/ls hearts remove  `
Removes hearts.

`/ls hearts set  `
Sets hearts.

`/ls revive `
Revives a player who reached 0 hearts and was banned.

`/ls give  `
Gives a custom item.

`/ls givearmor  `
Gives a complete custom armor set.

`/ls list`
Shows all custom items.

`/ls reload`
Reloads the configuration.

Add Tab Completion for all commands.

All admin commands should require permissions.

---

## Permissions

Add proper permissions such as:

`legacysmp.admin`
`legacysmp.reload`
`legacysmp.hearts`
`legacysmp.give`
`legacysmp.revive`
`legacysmp.adminsword`

Permissions should be compatible with plugins such as LuckPerms.

---

## Configuration

Create clean configuration files.

Important settings should be editable without changing the Java source code.

The config should allow changing:

* Starting hearts.
* Maximum hearts.
* Hearts gained per kill.
* Hearts lost per death.
* Hearts restored after revive.
* Ban message.
* Item names.
* Item lore.
* Item materials.
* Custom Model Data if needed.
* Damage.
* Cooldowns.
* Ability duration.
* Ability radius.
* Particle effects.
* Sound effects.
* Armor effects.
* Full Set Bonuses.
* Plugin messages.

Create a separate messages file if possible.

Example:

`config.yml`
`messages.yml`
`items.yml`
`armor.yml`

---

## Player Messages

All messages should look clean and professional.

Use a configurable prefix such as:

`&8[&cLegacySMP&8] &r`

Add messages for:

* Gaining a heart.
* Losing a heart.
* Reaching maximum hearts.
* Ability activation.
* Ability cooldown.
* Full armor set activation.
* Player elimination.
* Player revival.
* No permission.
* Invalid command.
* Reload complete.

---

## Data Storage

Player heart data must be saved safely.

Use a proper system such as:

* YAML.
* SQLite.
* Another reliable local storage system.

Data must not disappear after:

* Restart.
* Crash.
* Reload.
* Disconnect.

Use player UUIDs instead of usernames for stored data.

---

## Security / Anti-Exploit

Make sure players cannot exploit the plugin.

Prevent:

* Duplicate heart rewards.
* Fake custom items.
* Ability spam.
* Custom item duplication exploits.
* Using staff weapons without permission.
* Getting heart rewards from invalid deaths.
* Heart values going below 0.
* Heart values going above the configured maximum.

The plugin should properly handle:

* Player quit.
* Player join.
* Death.
* Respawn.
* Server restart.
* Plugin reload.

---

## Code Quality

The plugin should be professionally structured.

Do not put the entire plugin inside one Java class.

Use separate classes/managers for systems such as:

* LifestealManager.
* HeartManager.
* ItemManager.
* AbilityManager.
* ArmorManager.
* CooldownManager.
* DataManager.
* CommandManager.

The code should be clean, readable, maintainable, and optimized.

The final plugin should feel like a complete custom **LegacySMP core gameplay plugin**, not a basic Lifesteal plugin with a few extra items.
Kodari AI
KodariSep 5 at 9:43 am 2
  1. Create the Paper/Gradle project and configurable plugin resources.

  2. Implement persistent lifesteal hearts, elimination, revive, and staff commands.

  3. Implement six authenticated ability swords, cooldowns, staff-only admin swords, and anti-movement protections.

  4. Implement two custom armor sets with full-set effects and configuration-driven messages/items.

Created the LegacySMP Paper plugin project with:

  • Persistent lifesteal hearts using UUID-based YAML storage

  • Configurable starting, maximum, minimum, gain, loss, revive, and elimination settings

  • Automatic elimination ban at minimum hearts

  • Staff revive system

  • Six authenticated custom swords:

    • Flameblade

    • Stormblade

    • Shadowblade

    • Frostbite

    • Admin Inferno

    • Void Reaver

  • Staff-only admin sword permissions and protection

  • Two custom armor sets:

    • Ember Set

    • Warden Set

  • Full armor-set effects and activation messages

  • Ability cooldowns, sounds, particles, damage, knockback, fire, debuffs, and dashes

  • Staff commands:

    • /ls hearts

    • /ls hearts add

    • /ls hearts remove

    • /ls hearts set

    • /ls revive

    • /ls give

    • /ls givearmor

    • /ls list

    • /ls reload

  • Tab completion and permissions

  • Config files:

    • config.yml

    • messages.yml

    • items.yml

    • armor.yml

  • Gradle build setup targeting modern Paper 1.21.4 and Java 21

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
15 966
src/main/java/com/legacysmp/LegacySMPPlugin.java
package com.legacysmp;

import com.legacysmp.ability.AbilityManager;
import com.legacysmp.armor.ArmorManager;
import com.legacysmp.commands.LegacyCommand;
import com.legacysmp.data.HeartManager;
import com.legacysmp.items.CustomItemManager;
import com.legacysmp.listeners.LegacyListener;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;
import java.util.HashMap;
import java.util.Map;

public class LegacySMPPlugin extends JavaPlugin {
    private YamlConfiguration messages;
    private HeartManager heartManager;
    private CustomItemManager itemManager;
    private AbilityManager abilityManager;
    private ArmorManager armorManager;

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

        heartManager = new HeartManager(this);
        itemManager = new CustomItemManager(this);
        abilityManager = new AbilityManager(this, itemManager);
        armorManager = new ArmorManager(this);

        Bukkit.getPluginManager().registerEvents(new LegacyListener(this), this);
        LegacyCommand command = new LegacyCommand(this);
        getCommand("legacysmp").setExecutor(command);
        getCommand("legacysmp").setTabCompleter(command);
        armorManager.start();
        getLogger().info("LegacySMP enabled with lifesteal, abilities, and custom armor.");
    }

    @Override
    public void onDisable() {
        if (heartManager != null) heartManager.save();
    }

    public void reloadPlugin() {
        reloadConfig();
        loadMessages();
        itemManager.reload();
        armorManager.reload();
    }

    private void loadMessages() {
        messages = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "messages.yml"));
    }

    public String message(String key, Object... replacements) {
        String text = messages.getString(key, key);
        String prefix = messages.getString("prefix", "");
        if (!key.equals("prefix")) text = prefix + text;
        for (int i = 0; i + 1 < replacements.length; i += 2) {
            text = text.replace("{" + replacements[i] + "}", String.valueOf(replacements[i + 1]));
        }
        return ChatColor.translateAlternateColorCodes('&', text);
    }

    public void send(CommandSender sender, String key, Object... replacements) {
        sender.sendMessage(message(key, replacements));
    }

    public HeartManager hearts() { return heartManager; }
    public CustomItemManager items() { return itemManager; }
    public AbilityManager abilities() { return abilityManager; }
    public ArmorManager armor() { return armorManager; }
}