Solved Hit player with command

Discussion in 'Plugin Development' started by PDKnight, Apr 8, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    PDKnight

    Hello, Bukkit...
    Is there any way how to hit a player with a command, like this one?
    Code:java
    1. player.hit(damage);

    I don't want to use player.setHealth, I want to play the sound and see the player skin red after using the command. Any ideas?
    Thanks in advance.
     
  2. Offline

    bwfcwalshy Retired Staff

    @PDKnight Have a command and do #damage()
     
  3. Offline

    PDKnight

    Works, thanks alot!
     
  4. Offline

    bwfcwalshy Retired Staff

    @PDKnight No problem, please mark this thread as Solved.
     
Thread Status:
Not open for further replies.

Share This Page