MrBlue
Punish players for various actions/events

Supported Games
GameServerKingsGameServerKings

Punish provides punishment for players that perform various actions or as triggered by select events.

Currently only players dying and players killing other players are supported, but others are on the way and open for requests.

Permissions

  • punish.exclude -- Excludes player from punishment for configured actions/events

Configuration

{
  "Punish for dying": {
    "Enable punishment": true,
    "Ban as punishment": false,
    "Hurt as punishment": 0.0,
    "Kick as punishment": false,
    "Slap as punishment": false,
    "Amount of damage per slap": 10,
    "Intensity of each slap": 5,
    "Number of times to slap": 1,
    "Economics withdrawl": false,
    "Economics amount": 1000,
    "Server Rewards withdrawl": false,
    "Server Rewards amount": 100
  },
  "Punish for killing other players": {
    "Enable punishment": true,
    "Ban as punishment": false,
    "Hurt as punishment": 0.0,
    "Kick as punishment": false,
    "Slap as punishment": false,
    "Amount of damage per slap": 10,
    "Intensity of each slap": 5,
    "Number of times to slap": 1,
    "Economics withdrawl": false,
    "Economics amount": 1000,
    "Server Rewards withdrawl": false,
    "Server Rewards amount": 100
  },
  "Include actions from NPCs": true,
  "Use permission system": false
}

Localization

{
  "PunishmentBan": "You were banned for {0}",
  "PunishmentHurt": "You were hurt for {0}",
  "PunishmentKick": "You were kicked for {0}",
  "PunishmentJail": "You were jailed for {0}",
  "PunishmentSlap": "You were slapped for {0}",
  "PunishmentEconomics": "You lost {0:C} for {1}",
  "PunishmentServerRewards": "You lost {0} RP for {1}",
  "ReasonDeath": "dying",
  "ReasonPvPDeath": "killing a player"
}

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.