MP Health Power
Modify your users hp based on permission groups or individually. Great for RPG servers!
This plugin is for those seeking for a plugin that can modify users max health but couldnt find one that suit their needs yet, just like me!
SoftDependency: Vault. Only needed if trying to use the GUI feature or trying to use the per group HP system.
For the GUI feature you may also need an economy plugin, and for the per group HP system you may need a permissions plugin.
This plugin is for those seeking for a plugin that can modify users max health but couldnt find one that suit their needs yet, just like me!
SoftDependency: Vault. Only needed if trying to use the GUI feature or trying to use the per group HP system.
For the GUI feature you may also need an economy plugin, and for the per group HP system you may need a permissions plugin.
- Groups based max HP (ie: user: 10HP, admins: 20HP)
- Individually based HP
- HP set (player) command for setting a players max health independently of their group
- HP add (player) command for adding hp to a players max health independently of their group
- Check and correct a players HP to the HP specified in config on join, with ability to disable this feature
- HP GUI for buying or selling HP (needs Vault)
- Price formulas for increasing prices on proportion to players' HP
- Consumables! (Items your players can consume for modyfing their HP)
- HP permission checking - Set a player's HP by giving them a "healthpower.amount.X" permission
Commands:
-/HP - Opens the GUI (if enabled, otherwise shows help) (Also /hp gui to open the GUI)
-/HP help - Shows this list of commands
-/HP version - Show the plugin's current version
-/HP reload - Reloads the plugin's files
-/HP set (player) (HP) - Sets a player's max health to the specified
-/HP add (player) (HP) - Adds HP to a player's max health
-/HP gui - Opens the health buy GUI.
-/HP consumable get (name) - Gets a consumable by its name in the file.
-/HP consumable set (name) (add/set (refers to the health operation, either add hearts or set hearts) (amount of hearts)) - Sets a new consumable in the consumables file.
-/HP clear (player) - Clears a player's name from the HP file.
-/HP clearAll - Clears every player's name from the HP file.
-/HP check (player) - Checks and corrects a player's HP.
-/HP checkAll - Checks and corrects every online player's HP.
Permissions:
-healthpower.version - Allows you to check the plugin's current version
-healthpower.reload - Allows you to reload the plugin and its files
-healthpower.set - Allows you to set a player's max health
-healthpower.add - Allows you to add HP to a player's max health
-healthpower.gui - Allows a player to open the GUI
-healthpower.cap.bypass - Allows a player to bypass the maximum amount of health power.
-healthpower.consumables - Allows a player to manage consumable items.
-healthpower.clear - Allows a player to clear player's HP in hp file.
-healthpower.check - Allows a player to check and correct players' HP.
-healthpower.* - Gives access to every permission available
config:<br /> # Whether to enable metrics or not. Metrics are a way for the developer to know how many people/servers<br /> # are using this plugin and other statistics, you will not see a change in performance in the slightest if you keep<br /> # them enabled. That said, keeping them enabled is highly appreciated <3.<br /> use metrics: true<br /> # Prefix used for messages<br /> prefix: '&f<span class="br0">[</span>&cHealthPower&f<span class="br0">]</span>'<br /> # Should the plugin tell the console the group of a player when they join?<br /> debug: false<br /> # Maximum amount of HP a player can get. When adding or setting, if enabled and the resulting HP is<br /> # higher than this cap and the the player does not have the "HealthPower.cap.bypass" the HP will not be modified.<br /> HP cap:<br /> enabled: true<br /> amount: 40<br /> # If true will try to update the player's health bar in order to avoid client side render errors.<br /> # This tend to happen when a player has more than 20HP, the client will show the player as if<br /> # they only had 20, instead of the right amount, to avoid this inconvenience, even though it does not really affect<br /> # their real max health, the plugin will remove hearts and then it will give them back.<br /> update HP on join: true<br /> # Whether or not the plugin should check AND CORRECT a players HP based on HP.yml.<br /> check HP on join: true<br /> check HP on reload: true<br /> # If the above options are true, and the player was not in the file, should the groups system be used instead?<br /> # Needs a permissions plugin AND vault<br /> use groups system: true<br /> # If enabled, when reloading the plugin or when a player joins, the plugin will check for players' permissions<br /> # to look for permissions with a format similar to "healthpower.amount.X" where X is a given amount<br /> # and will correct the player's HP to the highest X found in there. This overrides the group system<br /> # and players' manually set HP.<br /> use permissions system: true<br /> # Should custom consumable items for adding/setting HP be enabled?<br /> # If true, you can create your own consumable items and set them with a simple in-game command<br /> # with the following format:<br /> # /healthpower consumable add (name) (set/add) (amount)<br /> consumables enabled: true<br /> GUI:<br /> # Should this feature be enabled?<br /> enabled: true<br /> # The title you want for the GUI<br /> title: '&c&lBuy HP'<br /> size: 27<br /> # Price formulas. Equations for increasing health buy price on proportion to the player's health power.<br /> # To use them, set the price to %formula_INDEX%, where INDEX is the index for the formula in formulas.<br /> # For example, in order to get '500+(100*%HP%)', you should use %formula_0%, for '100*%HP%' use %formula_1% and so on.<br /> # You can use %HP% for the player's current health power.<br /> formulas:<br /> - 500+<span class="br0">(</span>100*%HP%)<br /> - -100*%HP%<br /> - '%HP%^2'<br /> - <span class="br0">(</span>6*100<span class="br0">)</span>-<span class="br0">(</span>%HP%*100)<br /> # Items go from 0 to the size you specified -1<br /> items:<br /> '8':<br /> material: BOOK<br /> name: '&6%name%''s Info'<br /> lore:<br /> - '&fBalance: &a%balance%'<br /> - '&fHP: &c%HP%'<br /> type: info<br /> amount: 0.0<br /> price: 0.0<br /> '12':<br /> material: REDSTONE<br /> name: '&cRemove 1 heart'<br /> lore:<br /> - '&6&lClick &fon this item'<br /> - '&fto remove 1 heart from your HP'<br /> - '&fPrice: &e%price%'<br /> - '&fAffordable: %affordable%'<br /> type: remove<br /> amount: 2.0<br /> price: '%formula_1%'<br /> '13':<br /> material: DIAMOND<br /> name: '&fSet hp to 3 hearts'<br /> lore:<br /> - '&6&lClick &fon this item'<br /> - '&fto set your hp to 3 hearts'<br /> - '&fPrice: &e%price%'<br /> - '&fAffordable: %affordable%'<br /> type: set<br /> amount: 6.0<br /> price: '%formula_3%'<br /> '14':<br /> material: EMERALD<br /> name: '&aAdd 1 heart'<br /> lore:<br /> - '&6&lClick &fon this item'<br /> - '&fto add 1 heart to your hp'<br /> - '&fPrice: &e%price%'<br /> - '&fAffordable: %affordable%'<br /> type: add<br /> amount: 2.0<br /> price: '%formula_0%'<br /> # the format needed:<br /> # items:<br /> # material: the type of item<br /> # name: the name the item will have<br /> # lore: lines of lore to add to the item<br /> # type: the hp modify type<br /> # (add = add hearts, set = set hearts, info = player info only. Will not modify HP, any other options = add)<br /> # amount: the amount of hearte to add or set to<br /> # price: the amount of money to be taken from the player (can be negative numbers)<br />messages:<br /> list of commands: '&6List of commands'<br /> no permission: '&cNo permission'<br /> use: '&cUse: &f/%command% %what% (player) (HP)'<br /> not online: '&cThat player is not online'<br /> must be a number: '&cHP must be a double number <span class="br0">(</span>ie: 1.0<span class="br0">)</span>'<br /> unknown command: '&cUnknown Command, try &e/%command% help'<br /> set HP: '&9%player% &fjust set your HP to &c%HP%'<br /> add HP: '&9%player% &fjust added you &c%HP% HP'<br /> you set HP: '&fYou just set the HP of &6%player% &fto &c%HP% HP'<br /> you add HP: '&fYou just added &6%player% &c%HP% HP'<br /> gui set HP: '&fYour HP is now &c%HP%'<br /> gui add HP: '&c%value% HP &fhave been &aadded &fto your total health (%HP%)'<br /> gui remove HP: '&c%value% HP &fhave been &cremoved &ffrom your total health (%HP%)'<br /> yourself: yourself<br /> hp automatic set: '&aYour &cHP &ahas been set to &c%HP%'<br /> opening gui: '&fOpening buy hp menu!'<br /> error opening gui: '&cThere was an error while trying to open de buy hp menu,<br /> talk to an admin or check console'<br /> no money: '&cYou do not have enough money. You need &f%price%&c, and you have<br /> &f%balance%'<br /> not enough hp: '&cYou do not have &f%hp% &cspare hp'<br /> 'yes': '&ayes'<br /> 'no': '&cNo'<br /> player HP above cap: '&cThat player''s resulting HP would be above the HP cap.<br /> HP was not modified.'<br /> HP above cap: '&cYour resulting HP would be above the HP cap. Your HP was not<br /> modified'<br /> default consumable message: '&fYour HP is now %HP%'<br /> consumable given: '&aA consumable has been given to you'<br /> consumable not in hand: '&cYou must be holding the consumable'<br /> consumables disabled: '&cConsumables are disabled in this server!'<br /> hp cannot be 0: '&cHP cannot be 0 or lower than 0'<br /> hp cleared: '&fHP of player %player% cleared!'<br /> hp cleared all: '&fEvery player''s HP has been cleared from the file!'<br /> hp checked: '&aChecked and corrected HP for &f%player%'<br /> hp checked all: '&aChecked and corrected HP for every player online!'<br /> inventory full: '&cYour inventory is full.'
# HP values stored here<br /># HP checking priorities: 1- by name (if the players name is under players, that value will be used)<br /># 2- by permission (if player has any permission with the "healthpower.amount.NUMBER" format, that value will be used)<br /># 3- by group (if a player's primary group is under the groups list in this file, the value for that group will be used)<br /># 4- default (if none of the above apply for a player, this default value will be used).<br /># Set default to 0 or any negative number to not use a default value and not modify players' hp when any other methods<br /># apply to them.<br />HP:<br /> default: 20<br /> players: []<br /> groups:<br /> owner: 20<br /> admin: 18<br /> user: 6
If you review my plugin let me know so i can put your video here
- Add a "health buy" GUI for users to buy more HP, with ability to disable it completely (DONE✅)
- "Price formulas" (Requested by @swerck ) (DONE✅)
- Modify max hunger (Requested by swerck)
- Accepting suggestions via DMs and discord server
By using this plugin you agree to the following terms:
- You cannot sell this plugin
- You cannot claim this plugin as yours
- I can modify this terms at any time without any kind of notification
If you find any bugs please let me know, also make sure to rate this plugin, thank you!
-
View User Profile
-
Send Message
Posted Dec 16, 2021would it be possible to edit regeneration speed or amount gained from particular food using this plugin?