KitPvP help

Discussion in 'Plugin Development' started by Fhbgsdhkfbl, Apr 24, 2014.

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

    Fhbgsdhkfbl

    Hey bukkit forums!
    I was wondering, for a kit i'm making, it's called spy, and whenever it hits a player, it will tell them how much hearts they have left,
    and idk how I would do this, if you could help. I'd appreciate it!
     
  2. Offline

    xAstraah

    String health = player.getHealth();
    player.sendMessage(health);

    This may be deprecated but i belive it still works?
     
  3. Offline

    Fhbgsdhkfbl

    xAstraah

    Stupid question but is it an EntityDamageByEntity Event? Or?
     
  4. Offline

    xAstraah

    Fhbgsdhkfbl, You could try that and see if it works? Since im not in eclipse i cannot test anything so im not going to say anything for defiant. But i'd say that would work just fine.
     
Thread Status:
Not open for further replies.

Share This Page