Discussion in 'Plugin Development' started by naorpeled, Jul 19, 2013.
For some reason when I place player.getHealth || player.getMaxHealth it doesnt work.
What do you mean by not working?
Giving an error in eclipse
Did you try re importing the API?
You have to be more specific if you want to get help faster. What exactly is the error?
Fixed. I didnt do one thing on a method but thanks alot anyway
naorpeled Make sure you are building against Bukkit, and not CraftBukkit.
The method getHealth() is ambiguous for the type Playerm.java/Raiding/src/rline 22Java Problem
naorpeled Please read through this post: https://forums.bukkit.org/threads/o...mbiguous-gethealth.156975/page-2#post-1743080
As Compressions already mentioned you should use Bukkit instead of craftbukkit in your Plugin...
Separate names with a comma.