Slaps
Slaps
Ever got annoyed with a player and feel like hurting them in game but not irl? You can with slaps! Maybe they'll behave when embarrassed that someone slapped them!
Command:
- /slap
Permission:
- slap.use
Features:
- Broadcast To Own Server
- Message when slapped and when you slap someone
- Easy, simple
- Very Small Plugin
@Dillzzzzz
oh yus ^^
@GrandmaJamGaming
He decompiled it.
@LOLINC
How do you have the code of this plugin? It was not shared on GitHub...
Um, Cool Plugin. But Contains A Bit Of Bugs.
Firstly,
Secondly,
Add An if statement regarding the args.
Like;
if(!(args.length == 1)){
sender.sendMessage(ChatColor.RED + "Invalid Syntax. /slap <player>");
return true; }else{
Your Code.
Thirdly,
player.setHealth(19);
^ Wrong.
Let's Consider The Player's Health is maybe um. 2 hearts. this isn't considered a slap.
It's Considered A Heal! :D
So,
Correction;
CraftPlayer target1 = (CraftPlayer) target;
double health = target1.getHealth() - 1;
target1.setHealth(health);
@NightpawPlugins
Lol it was an accident xD
That animation tho hahaha
That was quick... Just saw it in planning mode, now it is in full release? Are there any bugs? Try doing stress tests.
@Adzdon
xD pretty popular one
haha great GIF :p