HealthManager Plugin
Version: 3.0
Tested Minecraft Version: 1.20.4
Author: emko
Description
The
HealthManager plugin allows server administrators to manage players' maximum health through simple commands. Whether you want to increase or decrease a player's maximum health, this plugin provides the necessary tools to do so efficiently and effectively. Additionally, it now supports a Life Steal feature where players can gain or lose maximum health upon killing or being killed.
Features
- Withdraw Health: Decrease a player's maximum health using the /hm withdraw <amount> <player> command.
- Give Health: Increase a player's maximum health using the /hm give <amount> <player> command.
- Life Steal: When enabled, killing another player grants the killer 1 heart (2 HP) and deducts 1 heart (2 HP) from the victim's maximum health. If a player's maximum health reaches 0, they are banned from the server.
- Prevent Negative Health: Ensures that players cannot have less than 1 heart of health unless Life Steal is enabled.
- Tab Completion: Provides tab completion for commands to make them easier to use.
Commands
- /hm withdraw <amount> <player>
- Description: Decreases the specified amount of health from the player's maximum health.
- Usage: /hm withdraw <amount> <player>
- Permission: healthmanager.manage
- /hm give <amount> <player>
- Description: Increases the specified amount of health to the player's maximum health.
- Usage: /hm give <amount> <player>
- Permission: healthmanager.manage
- /hm ls <enable|disable>
- Description: Enables or disables the Life Steal feature.
- Usage: /hm ls <enable|disable>
- Permission: healthmanager.manage
Installation
- Download the plugin: Download the latest version of the HealthManager plugin.
- Place the plugin: Put the HealthManager.jar file into your server's plugins folder.
- Restart the server: Restart your Minecraft server to load the plugin.
- Configure Permissions: Ensure that the appropriate permissions are set for the commands.
Example Usage
- To remove 2 hearts (4 HP) from a player named Steve:
- Command: /hm withdraw 2 Steve
- Player Message: 2 HP was taken from you.
- Admin Message: You have withdrawn 2 HP from Steve.
- To add 3 hearts (6 HP) to a player named Alex:
- Command: /hm give 3 Alex
- Player Message: You have gained 3 HP.
- Admin Message: You have given 3 HP to Alex.
- To enable Life Steal:
- Command: /hm ls enable
- Message: Life Steal feature enabled.
- To disable Life Steal:
- Command: /hm ls disable
- Message: Life Steal feature disabled.
Permissions
- healthmanager.manage: Grants access to all /hm commands.
Support
For any issues, suggestions, or support, please contact me on discord.: emkoo_1
Additional Information
- Compatibility: This plugin is compatible with Paper server version 1.20.4.
- Updates: Regular updates will be provided to ensure compatibility with new Minecraft versions and to add new features based on user feedback.
License
Feel free about it.