1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Why i can not get Health or maxHealth of damager and entity using EntityDamageByEntity event ?

Discussion in 'Development' started by Nora1903, Jun 20, 2018.

  1. Nora1903

    Nora1903 Slime

    Messages:
    82
    GitHub:
    cuongvnz
    Code:
    Call to undefined method pocketmine\Player::getHealth()
    Call to undefined method pocketmine\Player::getMaxHealth()
    Like the title when i getHealth() or getMaxHealth() of damager and entity , console input error
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    You're using the wrong PocketMine..? :confused:
    What are you using?
     
    xXNiceAssassinlo YT likes this.
  3. Nora1903

    Nora1903 Slime

    Messages:
    82
    GitHub:
    cuongvnz
    I got it. I type wrong heath instead of health @@
     
    Muqsit likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.