Use player.getWorld().playEffect rather than player.playEffect() The difference being one's a job and the other's a mental sickness.
Here's my take at it. public boolean onCommand(CommandSender sender, Command command, String string, String[] args){...
Just use that code that I posted. Replace the 6 with what amount you want to heal. In the else statement put in if(player.getMaxHealth >...
You have to start it in an @EventHandler first. If you don't know how to do that than you should learn the basics of the API because it's...
Okay, well if the code is deactivated during the game than there's not much chance it's causing problems. Why you posted the code for that is...
I have an idea! Launch it as a fallingblock and than use the falling block land event (whatever it's called) and check for the data within the...
You would have to trial and error that kind of thing, unless you understood the physics behind it.
l.setX(l.getX()-1) <- Right there. You can't have a relativistic value such as x - x but have an absolutist number. If x - x is positive than 1...
*Sigh* it's one of THOSE kind of people... I'm not going to do your work for you, you know. I told you what you need to know. Now figure the...
That should work. Just as a notice to remove a potion effect just put in (PotionEffectType.NAME) rather than having to deal with 'new'. Also...
Make sure to either try{ and catch{ max health so you don't overheal them. If I recall healing more than the player can take will cause an...
Do you have anything that prevents the crafting of those items? Just have it so that clicking that item would only cancel if it has the right...
Either use PlayerInteractEvent (if action = right click) or if you're smart/lazy just use the PlayerConsumeEvent. The PlayerInteractEvent will...
Ah! When I was just beginning potion effects I had the same problem. It's a little more tricky than that. You have to use...
I use the official Bukkit crafting recipe thing (sorry I don't feel like explaining it) and then in a crafting event check for the output item, if...
Separate names with a comma.