SetMaxHealth = Damageable is deprecated and some other stuff

Discussion in 'Plugin Development' started by Andrew4Art, Mar 6, 2015.

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

    Andrew4Art

    solved
     
    Last edited: Mar 7, 2015
  2. Offline

    xManfro

    Have you registered your listeners? and do you have the @EventHandler above the event?

    And for the health try this

    Code:
    p.setMaxHealth(30);
    p.setHealth(p.getMaxHealth());
     
  3. Offline

    mine-care

    Hopefully you use bukkit in your buildpath and not craftbukkit
     
    xManfro likes this.
  4. Offline

    Andrew4Art

    Yes i got the @EventHandler above the code and registered the listeneres
     
Thread Status:
Not open for further replies.

Share This Page