SlappingPlayers-Spigot is a silly/fun plugin. It gives a player with proper permissions the ability to "slap" a player, either causing no damage or some damage. You can slap a player from anywhere, and it does not get picked up by NoCheatPlus. The code is full of comments for easy following.
- /slap
- [player] [damage]
To slap a player, ensure that you have the "slappingplayers.slap" permission. Use the command '/slap ', replacing with the player's name. This will then cause the targeted player to recieve 0 damage, while having the 'hurt' effect.
To slap a player for damage, ensure that you have the "slappingplayers.slap.damage" permission. At the end of your slap command, add an integer for the amount of damage. This will cause the targeted player to recieve the amount of damage specified.
SlappingPlayers-Spigot was built with SpigotAPI 1.8.8 R0.1. Newer versions of the SpigotAPI could possibly cause compilation to fail.
To get SpigotAPI, you have to use Spigot's BuildTools, which can be found [here] SpigBT
- Fetch the GitHub repo and open in your preferred IDE.
- Using BuildTools, download the SpigotAPI.
- Add SpigotAPI as an external JAR.
- Build all files to a JAR file.
- Put the JAR file in a Spigot server's 'plugins' folder
- Start/Restart Spigot or use a plugin to manually load the plugin.