getHealth is ambigious (i know about the int to double)

Discussion in 'Plugin Development' started by Roelyboely12, Aug 4, 2014.

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


    i have this really simple line of code:
    if (player.getHealth() >= damage);

    And i want to test my plugin but unfortunately a error got in my way:
    The method getHealth() is ambiguous for the type Player

    help would be appreciated :)
  2. Offline


    Use the bukkit jar, not the craftbukkit jar
  3. Offline


    What I usually do, is download the 1.5.2 jar, and add it to my project. This will remove the error. But there may be different ways.

    (Make sure its the top of the list when you add it to your project in build path)
  4. Offline


    how do i get the bukkit jar?
  5. Offline


  6. Offline


  7. Offline


    It worked for me how do i change the state to "Solved" (i'm new to bukkit :))
Thread Status:
Not open for further replies.

Share This Page