Heal allows players with permission to heal themselves or others. By default, there is a cooldown of 30 seconds, but it can be disabled by setting it to 0 in the configuration file.
Permissions
heal.self-- Allows player to use the 'heal' command to heal themselvesheal.player-- Allows player to use the 'heal' command to heal other playersheal.all-- Allows player to use the 'healall' command to heal everyoneheal.nocooldown-- Allows player to use the heal commands without any cooldown
Commands
heal-- Heal yourself by maximum amountheal [amount]-- Heal yourself by specified amounthealplayer <player name or id>-- Heal another player by default amounthealplayer <player name or id> [amount]-- Heal another player by specified amounthealall-- Heal all players by maximum amounthealall [amount]-- Heal all players by specified amount
Amount is always optional. Replace [amount] with a valid number, and [player name or id] with a player's name or ID.
Configuration
{
"Command cooldown in seconds (0 to disable)": 30,
"Maximum heal amount": 100,
"Notify target when healed": true,
"Use permission system": true
}
"Cooldown in seconds (0 to disable)": 30 -- Number of seconds a player must wait to use a command again
"Maximum heal amount": 100 -- The maximum amount that can be used with the commands
"Notify target when healed": true -- Send a message to the player intended to be healed when healed
"Use permission system": true -- Enable/disable support for permission system
Localization
{
"CommandHeal": "heal",
"CommandHealAll": "healall",
"CommandHealPlayer": "healplayer",
"NotAllowed": "You are not allowed to use the '{0}' command",
"NoPlayersFound": "No players found with name or ID '{0}'",
"NoPlayersOnline": "There are no players online to heal",
"PlayerNotFound": "Player '{0}' was not found",
"PlayerWasHealed": "{0} was healed {1}",
"PlayersFound": "Multiple players were found, please specify: {0}",
"PlayersOnly": "Command '{0}' can only be used by players",
"PlayersHealed": "All players have been healed {0}!",
"YouWereHealed": "You were healed {0}",
"UsageHeal": "Usage: {0} [amount] -- Heal self by specfied or default amount",
"UsageHealAll": "Usage: {0} [amount] -- Heal all players by specfied or default amount",
"UsageHealPlayer": "Usage: {0} <name or id> [amount] -- Heal player by specfied or default amount",
"CommandCooldown": "Wait a bit before attempting to use '{0}' again",
"PlayerWasNotHealed": "{0} was unable to be healed",
"YouWereNotHealed": "You were unable to be healed",
"PlayerAtMaxHealth": "{0} is already at max health",
"YouAreAtMaxHealth": "You are already at max health"
}
Credits
- Domestos, for the original Heal plugin in Lua
MIT License, with distribution exclusivity for uMod.org
Copyright (c) 2020 Wulf
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

