Solved IntelliJ Damageable Match?

Discussion in 'Plugin Development' started by FabeGabeMC, Aug 19, 2014.

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

    FabeGabeMC

    So I have been getting used to IntelliJ quite a bit.. and I ran into this one problem earlier...
    So.. I tried using an old code from quite a long time ago (not that much really), then I get this error that just didn't show up in Eclipse, and sure enough the code ran perfectly.
    Here's my error:
    [​IMG]

    And on Eclipse:
    [​IMG]

    And yes I had to use Enjin for image storage... lol.

    And as you saw, that is my code. Is there any reason why this is happening on IntelliJ only?

    Thanks,
    Gabe
     
  2. Offline

    br456

    FabeGabeMC
    You need to build the plugin against Bukkit, not CraftBukkit
     
  3. Offline

    FabeGabeMC

    br456 I've built with CraftBukkit on Eclipse, which gave me what you see on 'Eclipse'. I don't see the reason why I should build with Bukkit instead.
     
  4. Offline

    br456

    FabeGabeMC
    You need to in order to use getHealth()
     
  5. Offline

    FabeGabeMC

    br456 No since it didn't do that with Eclipse which I used craftbukkit on.

    EDIT: I tried! It did work! Thank you so much!
     
  6. Offline

    Necrodoom

  7. Offline

    FabeGabeMC

    Necrodoom
    That was not my issue and I used doubles. Not floats or integers.
     
  8. Offline

    Necrodoom

    FabeGabeMC interesting, because what br456 said is exactly what thread aims to say.
    Unless you want to use craftbukkit methods, always build against bukkit only.
     
Thread Status:
Not open for further replies.

Share This Page