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

    Roelyboely12

    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

    Seadragon91

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

    Epicballzy

    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

    Roelyboely12

    how do i get the bukkit jar?
     
  5. Offline

    Gater12

  6. Offline

    fireblast709

  7. Offline

    Roelyboely12

    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