Jake florence Vesca

VEYLITH LIFESTEAL

Create a complete Minecraft Lifesteal plugin named VEYLITH LIFESTEAL for Paper servers.

❤️ Main Lifesteal System

  • Every player starts with 10 hearts.
  • When a player kills another player, the killer automatically steals 1 heart.
  • The killer immediately gains 1 maximum heart.
  • The victim immediately loses 1 maximum heart.
  • No redeem commands.
  • No redeem GUI.
  • No heart claiming.
  • The heart transfer must happen instantly after a valid player kill.
  • Hearts must be permanently saved, including after server restarts.

💀 Death System

  • When a player reaches 0 hearts, permanently eliminate them from the Lifesteal world.
  • Prevent eliminated players from joining and playing normally.
  • Show a custom elimination message.
  • Provide an admin option to revive eliminated players.

⚖️ Heart Limits

  • Starting hearts: 10.
  • Maximum hearts: 20.
  • Minimum hearts: 1.
  • If the killer is already at maximum hearts, do not steal a heart.
  • If the victim is at minimum hearts, they cannot lose another heart.
  • Make all limits configurable.

🛡️ Anti-Abuse

  • Prevent players from farming hearts by repeatedly killing the same player.
  • Add configurable kill cooldowns.
  • Prevent self-kills from transferring hearts.
  • Prevent fake or invalid kill transfers.
  • Make sure only legitimate player kills count.

🎨 Messages

Use the VEYLITH branding.

Examples:

  • Killer: "&c+1 Heart! &7You stole a heart from &e{victim}&7!"
  • Victim: "&c-1 Heart! &7Your heart was stolen by &e{killer}&7!"
  • Elimination: "&4&lELIMINATED! &c{player} has lost all their hearts!"

⚙️ Admin Commands

  • /lifesteal reload
  • /lifesteal sethearts <player> <amount>
  • /lifesteal revive <player>
  • /lifesteal check <player>

Only administrators can use these commands.

📁 Configuration

Create a configurable config.yml for:

  • Starting hearts
  • Maximum hearts
  • Minimum hearts
  • Kill cooldown
  • Messages
  • Elimination settings
  • Plugin prefix

IMPORTANT

  • This must be a REAL working plugin, not a mockup.
  • No AI players.
  • No fake player kills.
  • No redeem system whatsoever.
  • Use proper Minecraft health attributes.
  • Update maximum health immediately after every successful heart transfer.
  • Save player hearts persistently.
  • Make it compatible with my Paper server.
  • Include the complete Java source code, plugin.yml, config.yml and compiled JAR.
  • Do not leave unfinished methods or placeholder code.
Kodari AI
KodariMon at 9:16 am 1
VeylithLifesteal
A comprehensive Lifesteal plugin for Paper servers with automatic heart stealing on player kills. Players start with 10 hearts, steal 1 heart from victims on legitimate kills, and lose hearts when killed. Includes permanent heart persistence across restarts, elimination system for players reaching 0 hearts, configurable limits (max 20, min 1), kill cooldowns to prevent farming, and anti-abuse protections. Features admin commands for reloading config, setting hearts, reviving eliminated players, and checking heart counts. All messages use VEYLITH branding with customizable config.yml for all settings.
  • Persist heart counts, elimination status, player names, and per-killer/victim cooldowns.

  • Apply max-health changes immediately and enforce eliminations on death, respawn, and join.

  • Add OP-only admin commands plus VEYLITH-branded configuration and plugin metadata.

Implemented VEYLITH LIFESTEAL with persistent hearts and kill cooldowns, immediate max-health updates, elimination and join prevention, configurable VEYLITH messages, and OP-only /lifesteal reload, sethearts, revive, and check commands.

To generate and download the compiled JAR:

  1. Click Compile in the desktop top bar, or ⋮ → Compile Project on mobile.

  2. Click Compile in the window.

  3. When it succeeds, click Download on the build.

Kodari can make mistakes. Review important code before using.
Files
src
Code
6 539
src/main/java/com/veylith/lifesteal/VeylithLifesteal.java
package com.veylith.lifesteal;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class VeylithLifesteal extends JavaPlugin {
    private LifestealManager lifestealManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        lifestealManager = new LifestealManager(this);
        Bukkit.getPluginManager().registerEvents(new LifestealListener(this, lifestealManager), this);
        getCommand("lifesteal").setExecutor(new LifestealCommand(this, lifestealManager));
    }

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

    public LifestealManager getLifestealManager() {
        return lifestealManager;
    }
}