Skip to content

Commit

Permalink
Updated: Use sendHurtAnimation() in CmdSlap
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaneyXYZ committed Jul 6, 2024
1 parent b826944 commit 1ee804a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public boolean runCommand(final CommandSender cs, final Command cmd, final Strin
push.setY(r.nextInt(2));
push.setX(r.nextInt(4) - 2);
push.setZ(r.nextInt(4) - 2);
t.sendHurtAnimation(r.nextInt(270));
t.setVelocity(push);
this.plugin.getServer().broadcastMessage(ChatColor.GOLD + cs.getName() + MessageColor.RESET + " slaps " + MessageColor.NEGATIVE + t.getName() + MessageColor.RESET + "!");
return true;
Expand Down

0 comments on commit 1ee804a

Please sign in to comment.