Help With My Plugin. Wont Get Player Health

Discussion in 'Plugin Development' started by iWesley23, Dec 29, 2013.

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

    iWesley23

    I am creating a plugin where you can eat everything. But I have a problem with the code.
    Here is the first thing I added to see if it worked but it gives me an error saying "The method getHealth() is ambiguous for the type Player "
    The Code:
    Thanks if you can help.
     
  2. Offline

    EnderTroll68

  3. Offline

    iWesley23

    Sorry, I dont know what to do. I am a new coder. I just learned a few things from my brother who is like a master coder but he is not available right now.
     
  4. Offline

    EnderTroll68

    A plugin so that a player can eat everything will only work to an extent. You will not get the eating animation, just them holding the block and it disappearing. If this is what you want then so be it. The thing you want to do is download the latest version of Bukkit beta found HERE. Then you are going to want to right click your project in eclipse and click on properties. Then go to Libraries and remove the version of Bukkit that you have in there, and then click Add External Jar and add the file you just downloaded. If you still get the error, right click it and click quick fix and choose to either suppress it or find the way to fix it
     
  5. Offline

    iWesley23

    Yes, I just want them to be able to eat it. Thanks for the help. :D
     
Thread Status:
Not open for further replies.

Share This Page