tiger2m

Make Minecraft plugging airlifting kill anyone give him hearts and die loss a heart and add 5 custom weapon first weapon is sword customs word second weapon is custom acts 3rd weapon is custom mace fourth weapon is custom armour fifth apni Marji se kuch bhi Dal do jiski madad se Ham hawa mein 5 minut ke liye

Kodari AI
KodariAug 20 at 4:33 am 1
AerialCombatArena
A Minecraft plugin that introduces a high-stakes aerial combat system. When a player is airborne, they gain bonus hearts, but sustaining damage while flying costs them a permanent heart. The plugin adds five custom weapons: a legendary sword, a custom axe, a unique mace, specialized armor, and a jetpack-like item enabling five minutes of sustained flight. Combat mechanics reward aggressive aerial play while penalizing reckless airborne engagement, creating a dynamic sky-battle experience with strategic risk-reward decisions.
  1. Create the Gradle/plugin metadata and default configuration.

  2. Implement persistent lifesteal hearts with kill gain, death loss, limits, and respawn synchronization.

  3. Add five custom items, including a Wind Feather that grants five minutes of flight.

  4. Register commands for heart management and item distribution.

Created the AirliftLifeSteal Minecraft plugin.

Features:

  • Players start with 10 hearts.

  • Killing a player steals 1 heart.

  • Dying removes 1 heart.

  • Heart limits: 1–40, configurable in config.yml.

  • Hearts persist in hearts.yml.

  • Five custom items:

    • Bloodblade sword

    • Skybreaker axe

    • Titan mace

    • Heartplate armor

    • Wind Feather — grants 5 minutes of flight

  • Commands:

    • /lifesteal hearts [player]

    • /lifesteal give <sword|axe|mace|armor|airlift> [player]

    • /lifesteal sethearts <player> <amount>

    • /lifesteal weapons

    • /customweapon <sword|axe|mace|armor|airlift>

tiger2m

And add weapon unlock command jise dalne per weapon song click karke enter karenge vah weapon unlock ho jaega aur uske recipe screen per a jayegi aur plugin dalne ke bad starting mein sari ki sari recipe lock hogi sirf admin / weapon unlock kar sakta hai aur ek hi vyapam

Kodari AI
KodariAug 20 at 4:36 am 1
  1. Add recipe-lock state and persistence for all five custom weapons.

  2. Add an admin-only /weapon unlock <weapon> command that unlocks one recipe at a time.

  3. Show unlocked recipes in the recipe book and keep all recipes locked after installation until explicitly unlocked.

  1. Added admin command: /weapon unlock <sword|axe|mace|armor|airlift>.

  2. All five custom weapon recipes are locked by default.

  3. Unlocking a recipe makes it visible in every online player’s recipe book.

  4. New players automatically receive all previously unlocked recipes.

  5. Unlock status is saved in plugins/AirliftLifeSteal/recipes.yml.

  6. Only operators or players with lifesteal.unlock permission can unlock recipes.

  7. One weapon recipe unlocks per command; already unlocked recipes cannot be unlocked again.

tiger2m

Weapon armor me sirf chestplate aa rahi h pura armor set aye max or God mace pe wind bust X ho or density X

Kodari AI
KodariAug 26 at 6:41 pm 1
  1. Update the armor item flow to provide a complete helmet, chestplate, leggings, and boots set.

  2. Apply maximum configured armor enchantments to every armor piece.

  3. Add Wind Burst X and Density X to the custom God Mace, including recipe/item metadata where applicable.

  • /lifesteal give armor अब पूरा Netherite Heart armor set देता है:

    • Heart Helmet

    • Heart Chestplate

    • Heart Leggings

    • Heart Boots

  • सभी armor pieces पर max enchantments लगाए गए:

    • Protection IV

    • Unbreaking III

    • Mending I

    • Thorns III

    • Helmet: Respiration III, Aqua Affinity

    • Leggings: Swift Sneak III

    • Boots: Feather Falling IV, Depth Strider III, Soul Speed III

  • /weapon unlock armor अब recipe book में armor set की चारों recipes unlock करेगा।

  • God Titan Mace पर:

    • Density X

    • Wind Burst X

    • Unbreaking III

    • Mending I

  • सभी recipes installation के बाद locked रहेंगी और केवल admin/lifesteal.unlock वाला खिलाड़ी unlock कर सकेगा।

tiger2m

Ok ab plugin ka name GLOWSMP S2 KARO

Kodari AI
KodariAug 26 at 6:42 pm 1
  1. Rename the plugin display name and metadata to GLOWSMP S2.

  2. Update the main plugin identity and user-facing default configuration text where applicable.

Plugin name updated to GLOWSMP S2 in:

  • settings.gradle

  • plugin.yml

The main class and commands remain unchanged, so the plugin will continue working normally.

tiger2m

Add karo ki jab bhi ham axe swords se mare to 2 heart mile or mace se Marne par 9 heart mile or add karo ki arrmor pahnne par kisi se bhi barlo heart nhi jayega or arrmor pr course of glow ne w enchanted hoga jisse marne ke badh bhibah nhi hate ga sirf torke hi ose hataya ja sakta h or airlift me right click se on or off bhi kar paye

Kodari AI
KodariAug 27 at 4:45 am 2
  1. Update weapon-based heart rewards: axe/sword kills give 2 hearts, mace kills give 9.

  2. Make the complete armor set prevent heart loss while worn and bind it with Curse of Binding, preserving it through death.

  3. Add right-click toggling for the Airlift item so flight can be switched on and off.

  • Custom Bloodblade Sword और Skybreaker Axe से kill करने पर killer को 2 hearts मिलेंगे।

  • Custom God Titan Mace से kill करने पर 9 hearts मिलेंगे।

  • Normal weapon kill पर पुराना default 1 heart reward रहेगा।

  • Custom Heart Armor का कोई भी piece पहनने पर death/battle में hearts नहीं घटेंगे और killer को भी heart reward नहीं मिलेगा।

  • पूरे armor set में Curse of Binding लगाया गया है।

  • Death के बाद custom armor वापस equip रहेगा; armor केवल टूटने पर हटेगा।

  • Airlift/Wind Feather अब consume नहीं होगा:

    • Right-click → flight ON

    • दोबारा Right-click → flight OFF

    • ON रहने पर maximum 5 minutes बाद automatically OFF

tiger2m

Abb add karo ki pikax 3x3 dig or 1 click break mod

Kodari AI
KodariAug 28 at 1:48 am 1
  1. Add a custom pickaxe recipe/item and register it with the existing weapon system.

  2. Implement toggleable 3×3 mining and one-click vein/block breaking without affecting normal tools.

  3. Add the required command/recipe unlock handling and configuration values.

  • Glows God Pickaxe add कर दिया।

  • /weapon unlock pickaxe से इसकी recipe unlock होगी।

  • /lifesteal give pickaxe या /customweapon pickaxe से pickaxe मिलेगी।

  • Default mode: एक click में सामने के blocks का 3×3 area break।

  • Pickaxe पर Efficiency X, Fortune X, Unbreaking X और Mending लगे हैं।

  • Pickaxe पर right-click करके mode बदलेगा:

    • 3x3 — एक click में 3×3 blocks

    • single — एक click में केवल target block

  • Mode item के अंदर save रहेगा, इसलिए drop/pickup करने के बाद भी setting बनी रहेगी।

  • Recipe बाकी custom weapons की तरह शुरुआत में locked रहेगी और केवल admin /weapon unlock pickaxe कर सकेगा।

tiger2m

Or flight me auto off ke badh 23 second ka couldown hoga

Kodari AI
KodariAug 28 at 1:50 am 1
  1. Add a 23-second cooldown after Airlift automatically turns off.

  2. Block reactivation during cooldown and notify the player of remaining time.

  3. Keep manual toggling unchanged unless the automatic timeout has triggered the cooldown.

Airlift में बदलाव कर दिया गया:

  • 5 मिनट बाद flight auto-off होने पर 23 सेकंड cooldown लगेगा।

  • Cooldown के दौरान right-click करने पर flight दोबारा activate नहीं होगी।

  • Player को remaining cooldown seconds दिखेंगे।

  • Manual right-click से flight off करने पर cooldown नहीं लगेगा।

  • Cooldown खत्म होने के बाद Airlift फिर activate हो सकेगा।

tiger2m

Mere sare weapon ko customs look do

Kodari AI
KodariAug 30 at 5:31 am 1
  1. Give every custom item a distinct display name, multi-line lore, and custom model-data ID for resource-pack textures.

  2. Add clearer visual identity to the full Heart Armor set, Airlift, pickaxe, sword, axe, and mace without changing their mechanics.

सभी custom weapons को नया custom look दे दिया:

  • Bloodblade Sword — लाल mythic name, lifesteal lore, model-data 1001

  • Skybreaker Axe — blue storm theme, model-data 1002

  • God Titan Mace — gold mythic theme, Density X और Wind Burst X lore, model-data 1003

  • Wind Feather/Airlift — उड़ने की जानकारी और 23-second cooldown lore, model-data 1005

  • Glows God Pickaxe — mining mode और instant-break lore, model-data 1006

  • Heart Armor पूरा set — helmet, chestplate, leggings, boots के अलग-अलग names/lore और model-data 1101–1104

हर item में multi-line lore और custom model data जोड़ दिया गया है। Resource pack में इन्हीं model-data IDs के आधार पर custom textures लगाए जा सकते हैं; बिना resource pack के भी नए names, colors और lore दिखाई देंगे।

tiger2m

Customisable Ho jismein Ham back menu ko on karke FIR sar ka naam aaye to back menu mein server ka naam dekhen aur customise hai bolo aur phool dekhe background mein

Kodari AI
KodariSep 4 at 8:37 am 2
  1. Existing menu/UI flow और configurable server-name/background structure identify करना।

  2. Back menu को customizable बनाकर server name और flower-themed background जोड़ना।

  • /lifesteal और /lifesteal menu से configurable GUI खुलेगा।

  • Menu title/server name, background, flower slots, button names और slots config.yml से बदल सकेंगे।

  • Customise button custom weapons का preview menu खोलेगा; वहाँ back button भी रहेगा।

  • Menu को menu.enabled: false करके बंद किया जा सकेगा।

  • /lifesteal या /lifesteal menu से नया GLOWSMP S2 menu खुलेगा।

  • Menu title में server name दिखेगा: GLOWSMP S2

  • Background में flower design और pink panes जोड़े गए हैं।

  • Customise Weapons button से सभी custom weapons का preview menu खुलेगा।

  • Preview menu में Back button जोड़ा गया है।

  • Menu में क्लिक करके items लेने की अनुमति नहीं है—सिर्फ preview रहेगा।

  • सभी settings config.yml से बदल सकते हैं:

    • Server name

    • Menu title

    • Background material

    • Flower material

    • Flower slots

    • Button names और slots

  • Menu बंद करने के लिए menu.enabled: false करें।

tiger2m

Ye plugin load nhi ho raha fix karo

Kodari AI
KodariSep 5 at 4:03 am 2

Plugin loading issue fix किया:

  • plugin.yml में invalid space वाला internal name बदलकर GLOWSMP_S2 किया।

  • settings.gradle में भी project name update किया।

  • Config/menu में दिखने वाला server name अभी भी GLOWSMP S2 ही रहेगा।

नया JAR बनाकर पुराने JAR की जगह plugins folder में डालकर server restart करें।

tiger2m

Isme lifesteal ki taraha heart khatam hone pe player ban ho jayega or heart ko withdraw bhi kar sakte h jo ki neather star ke roop pe hoga or player ke heart limit full h to kisi player ko marne pe nether star ke roop me girega

Kodari AI
KodariSep 5 at 3:24 pm 3
  1. Heart limit खत्म होने पर player को ban करने वाला death-flow जोड़ना।

  2. Hearts withdraw/deposit के लिए Nether Star item और inventory interaction बनाना।

  3. Killer की heart limit full होने पर kill reward को Nether Star drop में बदलना और existing lifesteal flow से जोड़ना।

Lifesteal system add कर दिया:

  • Hearts 0 होने पर player automatically ban होगा।

  • Normal kill पर weapon के हिसाब से hearts मिलेंगे।

  • Killer की heart limit full होने पर extra hearts custom Nether Star Heart Token के रूप में जमीन पर गिरेंगे।

  • /withdraw <amount> या /lifesteal withdraw <amount> से hearts Nether Star tokens में withdraw कर सकते हैं।

  • Withdraw करने पर कम से कम 1 heart बचा रहेगा।

  • Nether Star Heart Token पर right-click करने से 1 heart वापस मिलेगा।

  • Maximum hearts पर token use नहीं होगा और item consume नहीं होगा।

  • Ban reason: You ran out of hearts.

  • Existing players के लिए भी minimum heart limit अब 0 allow होगी।

Plugin को rebuild करके नया JAR server के plugins folder में replace करें और server restart करें।

tiger2m

Custom mace ke liye texture ye add karo

1 image attached
Kodari AI
KodariSep 7 at 9:58 am 1

Custom mace में CustomModelData: 1003 पहले से लगा हुआ है। लेकिन भेजी गई image को Minecraft texture बनाने के लिए उसकी actual PNG file चाहिए—सिर्फ chat preview से plugin में binary texture add नहीं हो सकती।

कृपया image को PNG format में upload करें। उसके बाद मैं:

  • texture को resource pack में जोड़ूँगा;

  • mace का model JSON बनाऊँगा;

  • CustomModelData 1003 से texture link करूँगा;

  • resource pack को server से download करवाने की व्यवस्था करूँगा।

Resource pack के बिना केवल mace का custom नाम/lore दिखेगा, texture नहीं।

tiger2m
1 image attached
Kodari AI
KodariSep 7 at 10:03 am 1

Image mil gayi. Lekin is chat preview se actual PNG binary project ke andar save nahi ho pa rahi, isliye texture ko resource pack mein directly embed nahi kar sakta.

Mace texture add karne ke liye image ko transparent-background PNG ke रूप में upload करें, preferably:

  • 16×16, 32×32, या 64×64 resolution

  • White background हटाया हुआ

  • File name: god_titan_mace.png

Mace में CustomModelData: 1003 पहले से है। PNG मिलते ही इसे resource-pack path पर जोड़कर model JSON से link कर दूँगा:

Plain Text
assets/minecraft/textures/item/god_titan_mace.png
assets/minecraft/models/item/god_titan_mace.json
tiger2m

Custom sword

1 image attached
Kodari AI
KodariSep 7 at 10:04 am 1

इस sword texture को custom sword पर लगाने के लिए actual PNG file चाहिए। Chat में दिखाई दे रही image project के अंदर उपलब्ध नहीं है, इसलिए इसे resource pack में embed नहीं कर सकता।

Current sword पहले से CustomModelData: 1001 इस्तेमाल कर रही है। कृपया image को PNG के रूप में upload करें:

Plain Text
bloodblade.png

फिर इसे इन paths पर जोड़ा जाएगा:

Plain Text
assets/minecraft/textures/item/bloodblade.png
assets/minecraft/models/item/bloodblade.json

Texture resource pack के बिना Minecraft में दिखाई नहीं देगी। बेहतर result के लिए transparent background वाली 16×16, 32×32 या 64×64 PNG upload करें।

tiger2m

Custom Axe

1 image attached
Kodari AI
KodariSep 7 at 10:05 am 1

यह Custom Axe का texture रहेगा। अभी axe में CustomModelData: 1002 पहले से सेट है, लेकिन image को resource pack में जोड़ने के लिए actual PNG file चाहिए।

कृपया इसे PNG file के रूप में upload करें, बेहतर नाम:

Plain Text
skybreaker_axe.png

Resource-pack paths:

Plain Text
assets/minecraft/textures/item/skybreaker_axe.png
assets/minecraft/models/item/skybreaker_axe.json

PNG मिलने पर इसे Skybreaker Axe पर CustomModelData 1002 से connect कर दूँगा। White background हटाकर transparent PNG देने पर Minecraft में texture बेहतर दिखेगा।

tiger2m
5 images attached
Kodari AI
KodariSep 7 at 11:33 am 1

Ye 5 textures custom armor set + pickaxe ke lag rahe hain:

  1. Custom Boots

  2. Custom Leggings

  3. Custom Chestplate

  4. Custom Helmet

  5. Custom Pickaxe

Inhe plugin में जोड़ने के लिए image attachments की actual PNG files चाहिए—chat preview से binary file project में नहीं आती। कृपया transparent-background PNG files upload करें और इनके नाम बता दें, जैसे:

Plain Text
custom_helmet.png
custom_chestplate.png
custom_leggings.png
custom_boots.png
custom_pickaxe.png

इन textures के लिए resource pack भी जरूरी होगा; केवल plugin से Minecraft में custom texture दिखाई नहीं देगी।

tiger2m
3 images attached
Kodari AI
KodariSep 7 at 11:34 am 1

Ye 3 custom weapon textures dikh rahe hain:

  1. Custom Sword

  2. Custom Axe

  3. Custom Mace/Staff

Inhe Minecraft resource pack mein add karne ke liye original PNG files upload karo—chat preview se image ki actual file project mein available nahi hoti. PNG files ke naam rakh sakte ho:

Plain Text
custom_sword.png
custom_axe.png
custom_mace.png

Transparent-background PNG ya resource-pack ZIP upload kar do; phir main inhe custom model data ke saath connect kar dunga.

tiger2m

Ye support nhi ho raha zip file

Kodari AI
KodariSep 7 at 11:38 am 1

ZIP upload support नहीं हो रहा है। आप इनमें से कोई तरीका इस्तेमाल करें:

  1. हर texture की PNG file अलग-अलग upload करें

    • sword.png

    • axe.png

    • mace.png

    • helmet.png

    • chestplate.png

    • leggings.png

    • boots.png

    • pickaxe.png

  2. PNG upload भी केवल preview के रूप में आए, तो files को Google Drive, GitHub या Dropbox पर upload करके direct public link भेजें।

  3. Resource-pack की पूरी ZIP को किसी file-hosting पर upload करके उसका direct download link भेजें।

Texture files ideally transparent PNG और 16×16, 32×32 या 64×64 resolution की हों। Direct PNG/ZIP link मिलने पर मैं उन्हें custom items से connect कर दूँगा।

tiger2m

https://drive.google.com/file/d/1pCwqK7a4gZBPRdbPIxaJH1LKz_kUnjvQ/view?usp=drivesdk

Kodari AI
KodariSep 7 at 11:43 am 1

Google Drive link अभी private/permission required है, इसलिए file access नहीं हो पाई (401 Unauthorized)।

Google Drive में:

  1. File पर Share खोलें

  2. General access → Anyone with the link चुनें

  3. Role Viewer रखें

  4. नया link भेजें

या यह direct-download link भेजें:

Plain Text
https://drive.google.com/uc?export=download&id=1pCwqK7a4gZBPRdbPIxaJH1LKz_kUnjvQ

ध्यान रखें कि file .zip या individual .png हो और link खोलने पर login न मांगे।

tiger2m

https://drive.google.com/file/d/1pCwqK7a4gZBPRdbPIxaJH1LKz_kUnjvQ/view?usp=drivesdk

Kodari AI
KodariSep 7 at 11:45 am 1

Link अभी भी private है—Drive से 401 Unauthorized मिल रहा है। कृपया Google Drive में:

Share → General access → Anyone with the link → Viewer

करके नया link भेजें। अगर फिर भी काम न करे, file को GitHub Releases, Dropbox, या MediaFire पर upload करके public direct-download link भेजें।

tiger2m

https://drive.google.com/file/d/1pCwqK7a4gZBPRdbPIxaJH1LKz_kUnjvQ/view?usp=drivesdk

Kodari AI
KodariSep 7 at 11:47 am 1

Link अभी भी access नहीं हो रहा है—Google Drive 401 Unauthorized दे रहा है। इसका मतलब file अभी private है या login required है।

कृपया:

  1. Google Drive में file पर Share दबाएँ

  2. General access → Anyone with the link चुनें

  3. Permission Viewer रखें

  4. फिर नया link भेजें

Direct link भी यह होना चाहिए:

Plain Text
https://drive.google.com/uc?export=download&id=1pCwqK7a4gZBPRdbPIxaJH1LKz_kUnjvQ

अगर फिर भी access न हो, तो individual PNG images अलग-अलग upload करें।

tiger2m

https://www.mediafire.com/file/8a458aefrr1aqym/Custom+weapon+and+armor.zip/file

Kodari AI
KodariSep 7 at 11:50 am 1

MediaFire link अब accessible है। ZIP file 40.05 KB की है और download हो रही है:

Plain Text
Custom weapon and armor.zip

अब इसे resource pack के रूप में इस्तेमाल किया जा सकता है। ध्यान रहे:

  • ZIP को सीधे plugin में डालने से textures apply नहीं होंगे।

  • इसे Minecraft resource pack के रूप में host/install करना होगा।

  • Plugin में matching CustomModelData values और item models configure करने होंगे।

  • Armor के लिए armor textures/models भी resource pack में सही structure में होने चाहिए।

tiger2m

Custom texture show nhi ho raha fix karo customweapon [weapon name] automatically show custom model/texture

Kodari AI
KodariSep 11 at 3:56 am 2
  1. Resource-pack delivery: add configurable pack URL/hash/prompt and automatically send it when players join.

  2. Weapon command: keep /customweapon <name> mapped to the existing model-data items, while improving aliases and validation.

  3. Pack integration: include the supplied pack URL in configuration so clients receive the pack before using the custom items.

Fixed:

  • /customweapon <weapon name> अब item देने के बाद resource pack automatically भेजेगा।

  • Player join होने पर भी resource pack automatically भेजा जाएगा।

  • Existing custom model data mappings remain active:

    • sword: 1001

    • axe: 1002

    • mace: 1003

    • airlift: 1005

    • pickaxe: 1006

    • armor: 1101–1104

Config में यह set करें:

YAML
resource-pack:
  enabled: true
  url: "DIRECT_ZIP_DOWNLOAD_URL"

आपका MediaFire URL preview page है, direct ZIP URL नहीं। Minecraft उसे resource pack की तरह load नहीं करेगा। Direct URL ऐसा होना चाहिए जो browser में खोलते ही ZIP download करे—HTML preview page नहीं।

इसके बाद server restart करें और command चलाएँ:

Plain Text
/customweapon sword
/customweapon axe
/customweapon mace
/customweapon pickaxe

अगर resource pack पहले से server server.properties से भेजा जा रहा है, तो resource-pack.enabled: false भी रख सकते हैं।

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
9 1,649
src/main/java/com/kodari/airliftnlifesteal/AirliftLifeStealPlugin.java
package com.kodari.airliftnlifesteal;

import org.bukkit.Bukkit;
import org.bukkit.BanList;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerRespawnEvent;
import org.bukkit.event.block.Action;
import org.bukkit.inventory.EquipmentSlot;
import org.bukkit.inventory.ItemStack;
import org.bukkit.plugin.java.JavaPlugin;

public final class AirliftLifeStealPlugin extends JavaPlugin implements Listener {

    private HeartManager heartManager;
    private CustomItemManager customItemManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        getConfig().options().copyDefaults(true);
        saveConfig();

        heartManager = new HeartManager(this);
        customItemManager = new CustomItemManager(this);
        LifestealMenu lifestealMenu = new LifestealMenu(this, customItemManager);

        Bukkit.getPluginManager().registerEvents(this, this);
        Bukkit.getPluginManager().registerEvents(heartManager, this);
        Bukkit.getPluginManager().registerEvents(customItemManager, this);
        Bukkit.getPluginManager().registerEvents(lifestealMenu, this);

        LifestealCommand command = new LifestealCommand(this, heartManager, customItemManager, lifestealMenu);
        if (getCommand("lifesteal") != null) {
            getCommand("lifesteal").setExecutor(command);
            getCommand("lifesteal").setTabCompleter(command);
        }
        if (getCommand("customweapon") != null) {
            getCommand("customweapon").setExecutor(command);
            getCommand("customweapon").setTabCompleter(command);
        }
        if (getCommand("weapon") != null) {
            getCommand("weapon").setExecutor(command);
            getCommand("weapon").setTabCompleter(command);
        }
        if (getCommand("withdraw") != null) {
            getCommand("withdraw").setExecutor(command);
            getCommand("withdraw").setTabCompleter(command);
        }
    }

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

    @EventHandler
    public void onPlayerDeath(PlayerDeathEvent event) {
        Player victim = event.getEntity();
        Player killer = victim.getKiller();
        boolean protectedByArmor = customItemManager.hasHeartArmor(victim);
        if (!protectedByArmor) {
            heartManager.removeHeart(victim.getUniqueId());
        }
        if (killer != null && !killer.getUniqueId().equals(victim.getUniqueId()) && !protectedByArmor) {
            int reward = customItemManager.getKillHeartReward(killer.getInventory().getItemInMainHand());
            if (reward <= 0) {
                reward = 1;
            }
            int accepted = heartManager.addHearts(killer.getUniqueId(), reward);
            int overflow = reward - accepted;
            if (overflow > 0) {
                ItemStack heartToken = customItemManager.createHeartToken(overflow);
                if (heartToken != null) {
                    event.getDrops().add(heartToken);
                }
                killer.sendMessage("§aYou stole §f" + accepted + " §aheart(s) and §f"
                        + overflow + " §aheart token(s) dropped because your heart limit is full.");
            } else {
                killer.sendMessage("§aYou stole §f" + reward + " §aheart(s) from §f" + victim.getName() + "§a.");
            }
        }

        if (protectedByArmor) {
            victim.sendMessage("§bYour Heart armor protected your hearts.");
            if (killer != null && !killer.getUniqueId().equals(victim.getUniqueId())) {
                killer.sendMessage("§bHeart armor protected " + victim.getName() + "; no hearts were stolen.");
            }
        } else {
            victim.sendMessage("§cYou lost a heart. §7Hearts: §f"
                    + heartManager.getHearts(victim.getUniqueId()));
            if (heartManager.getHearts(victim.getUniqueId()) <= 0) {
                banForNoHearts(victim);
            }
        }
        heartManager.save();
    }

    @EventHandler
    public void onHeartTokenUse(PlayerInteractEvent event) {
        if (event.getHand() != EquipmentSlot.HAND
                || (event.getAction() != Action.RIGHT_CLICK_AIR
                && event.getAction() != Action.RIGHT_CLICK_BLOCK)) {
            return;
        }

        ItemStack item = event.getItem();
        if (!customItemManager.isHeartToken(item)) {
            return;
        }

        event.setCancelled(true);
        Player player = event.getPlayer();
        if (heartManager.getHearts(player.getUniqueId()) >= heartManager.getMaximumHearts()) {
            player.sendMessage("§cYour hearts are already at the maximum limit.");
            return;
        }

        heartManager.addHeart(player.getUniqueId());
        item.setAmount(item.getAmount() - 1);
        heartManager.save();
        player.sendMessage("§aYou restored one heart. §7Hearts: §f"
                + heartManager.getHearts(player.getUniqueId()));
    }

    @EventHandler
    public void onPlayerJoin(PlayerJoinEvent event) {
        sendResourcePack(event.getPlayer());
        if (heartManager.getHearts(event.getPlayer().getUniqueId()) <= 0) {
            banForNoHearts(event.getPlayer());
        }
    }

    public void sendResourcePack(Player player) {
        if (!getConfig().getBoolean("resource-pack.enabled", true)) {
            return;
        }

        String url = getConfig().getString("resource-pack.url", "").trim();
        if (url.isEmpty()) {
            return;
        }

        player.setResourcePack(url);
    }

    @EventHandler
    public void onPlayerRespawn(PlayerRespawnEvent event) {
        Bukkit.getScheduler().runTask(this, () -> heartManager.applyMaxHealth(event.getPlayer()));
    }

    private void banForNoHearts(Player player) {
        if (Bukkit.getBanList(BanList.Type.NAME).isBanned(player.getName())) {
            return;
        }
        Bukkit.getBanList(BanList.Type.NAME).addBan(player.getName(),
                "You ran out of hearts.", null, "GLOWSMP S2");
        player.kickPlayer("§cYou ran out of hearts and have been banned.");
    }
}