Solved Getting Player's health

Discussion in 'Plugin Development' started by AlexeyApple, Jul 3, 2019.

  1. Offline

    AlexeyApple

  2. Offline

    KarimAKL

    @AlexeyApple Which version do you build on?
    EDIT: I'm not 100% sure this matters but try changing '1' to '1.0' when you set the player's health.
     
    Last edited: Jul 3, 2019
  3. Offline

    AlexeyApple

    upload_2019-7-3_11-24-48.png

    upload_2019-7-3_11-39-20.png
    FIXED.
     
    Last edited by a moderator: Jul 3, 2019
  4. Offline

    KarimAKL

    @AlexeyApple Can you explain to me what casting Player to Damageable does? Player implements Damageable and 'setHealth', 'getHealth', and 'getMaxHealth' overrides the methods from Damageable.
     

Share This Page