Lifesteal

You can steal hearts from the players you kill!

5f2cc91d628c3814618c0fd03a7ff8c67440f834

Lifesteal Plugin for PocketMine-MP API 5

A comprehensive Lifesteal plugin for PocketMine-MP servers, allowing players to gain hearts by defeating other players and lose hearts upon death.

Features

  • Heart System: Players gain or lose hearts based on PvP encounters
  • Database Integration: Uses libasynql for SQLite/MySQL database support
  • Heart Items: Players can withdraw hearts as physical items
  • Custom Recipes: Configurable recipes for heart and revival items
  • Revival System: Special "Revival Bacon" item that can bring banned players back
  • Ban Management: Timed bans when players lose all hearts
  • Time Display: Shows remaining ban time when players try to join
  • Admin Commands: Complete set of commands for server administrators

Commands

CommandDescriptionPermission
/lifesteal helpShow help menulifesteal.command
/lifesteal sethearts <player> <hearts>Set a player's heartslifesteal.command.sethearts
/lifesteal gethearts [player]Get a player's heartslifesteal.command.gethearts
/lifesteal resethearts <player>Reset a player's heartslifesteal.command.resethearts
/lifesteal withdraw [amount]Withdraw hearts into itemslifesteal.command.withdraw
/lifesteal reviveGet a revival itemlifesteal.admin
/lifesteal unban <player>Unban a playerlifesteal.admin
/lifesteal reloadReload configurationlifesteal.command.reload

Permissions

PermissionDescriptionDefault
lifesteal.adminAccess to all Lifesteal admin commandsop
lifesteal.command.setheartsAllows setting a player's healthop
lifesteal.command.getheartsAllows checking a player's healthtrue
lifesteal.command.resetheartsAllows resetting a player's healthop
lifesteal.command.reloadAllows reloading the plugin configurationop
lifesteal.command.withdrawAllows withdrawing hearts into itemstrue
lifesteal.command.reviveAllows getting or using revival itemsop

Configuration

The plugin is highly configurable. You can modify:

  • Default, minimum, and maximum heart values
  • Heart gain/loss amounts
  • Ban duration and messages
  • Heart and revival item appearance and recipes
  • Database connection settings

Elimination System

When a player loses all their hearts, they are banned for a configurable period (default 7 days). The ban message shows the remaining time until they can rejoin.

Revival System

Administrators can create "Revival Bacon" items that can be used to unban eliminated players. This can be crafted using the configured recipe or obtained through the /lifesteal revive command.

Installation

  1. Place the plugin in your server's plugins folder
  2. Start the server to generate configuration files
  3. Configure as needed in plugins/Lifesteal/config.yml
  4. Restart the server

Dependencies

  • PocketMine-MP API 5.0.0+
  • libasynql (included)

Development

Developed by Biswajit.

Details

Version: 2.0.0

Downloads: 278

Updated: 4/13/2025

Supported API versions: 5.0.0 to 5.30.1

Categories: General, Fun, Minigame

License: APACHE-2.0

Producers

Collaborator