The method getHealth() is ambiguous for the type Player

Discussion in 'Plugin Development' started by elraro, Nov 15, 2014.

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

    elraro

    Well, im using craftbukkit (i need use craftbukkit, not bukkit) and i getting this error.

    So... How can i solve this? :(
     
  2. Offline

    teej107

    Build with Bukkit as well with CraftBukkit if you are using NMS classes. Other than that, cast to a Damageable.
     
  3. Offline

    sethrem

    Or just do this. ( on my phone so :)

    Code:Java
    1.  
    2. Damageable damp = (Damageable) player;
    3. damp.getHealth();
    4.  
     
Thread Status:
Not open for further replies.

Share This Page