MrBlue
Sometimes players just need to be slapped around a bit

Supported Games
GameServerKingsGameServerKings

Slap allows players with permission to slap other players around and do plenty of damage, if desired. The plugin also features random flinching and suitable sound effects for a premium slap experience when used in Rust.

Permissions

  • slap.use -- Allows player to slap other players

Commands

  • slap <name or id>
    Slap the specified player using default damage amount
  • slap <name or id> [damage] [intensity] [amount]
    Slap the specified player; with optional damage, intensity, and amount of slaps

Configuration

{
  "Command cooldown in seconds (0 to disable)": 30,
  "Default damage per slap": 10,
  "Default intensity per slap": 5,
  "Default amount of slaps": 1,
  "Show players who slapped them": true
}

Localization

{
  "CommandCooldown": "Wait a bit before attempting to slap again",
  "CommandSlap": "slap",
  "NotAllowed": "You are not allowed to use the '{0}' command",
  "NoPlayersFound": "No players found with name or ID '{0}'",
  "PlayerNotFound": "Player '{0}' was not found",
  "PlayersFound": "Multiple players were found, please specify: {0}",
  "PlayerSlapped": "{0} got slapped!",
  "UsageSlap": "Usage: {0} <name or id> [damage] [intensity] [amount]",
  "YouGotSlapped": "You got slapped!",
  "YouGotSlappedBy": "You got slapped by {0}!"
}

For Developers

void SlapPlayer(IPlayer player, float damage = 0f, int intensity = 0, int amount = 0)

Note: damage, intensity, and amount are optional, and all have default values of 0 unless otherwise specified in the Slap.json configuration file.

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.