2CHEVSKII
Allows players with permission to disable other player's damage

Supported Games
GameServerKingsGameServerKings

Features

Disable configurable types of damage that certain player can deal

Permissions

disabledamage.use - allows player to use chat command

Chat commands

/dd (<name>) - toggles damage for player. If <name> is not specified - toggles damage for command executer.

Configuration

{
  "General": {
    "Announce target player": true, - Announces player whose damage was toggled
    "Damage disabled by default": false, - All players have damage disabled all the time ("Types" still have effect)
    "Display name of user to target player": true, - Shows player whose damage was toggled the name of the player, who toggled it
    "Save disabled players to data": true - Allows saving disabled damage on plugin (server) restart
  },
  "Types": {
    "Disable damage to animals": true,
    "Disable damage to barrels": true,
    "Disable damage to Buildings and structures": true,
    "Disable damage to helicopter": true,
    "Disable damage to NPCs": true,
    "Disable damage to players": true,
    "Disable damage to transport": true
  }
}

Localization

{
  "Prefix": "<color=red>[</color>DISABLE DAMAGE<color=red>]</color>",
  "No permission": "<color=red>Y</color>ou have no permission to use this command<color=red>!</color>",
  "Self damage enabled": "Your damage has been <color=#36d859>enabled</color>.",
  "Self damage disabled": "Your damage has been <color=red>disabled</color>.",
  "Player's damage enabled": "You <color=#36d859>enabled</color> damage for player <color=#36a1d8>{0}</color>.",
  "Player's damage disabled": "You <color=red>disabled</color> damage for player <color=#36a1d8>{0}</color>.",
  "Player enabled your damage": "Your damage has been <color=#36d859>enabled</color> by <color=#36a1d8>{0}</color>.",
  "Player disabled your damage": "Your damage has been <color=red>disabled</color> by <color=#36a1d8>{0}</color>.",
  "No player found": "<color=red>N</color>o player found with that name<color=red>!</color>",
  "Help message": "<color=yellow>Wrong command usage!</color>\n<color=#36a1d8>/dd</color> - enable/disable your damage\n<color=#36a1d8>/dd <username or userid></color> - disable damage for specific user.",
  "Command unavailable": "This command is <color=yellow>unavailable</color> while \"<color=#F2BC14>Damage disabled by default</color>\" is \"<color=#195FFF>true</color>\" in the config file!"
}

MIT License


Copyright (c) 2020 2CHEVSKII


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.