Its been... Either way I solved by casting Damageable to my player. Wolfey MrInspector
MrInspector It doesn't let me do that because the getHealth() field is ambiguous in the sense that there are two getHealth's in Player.
MrInspector Much appreciated. :)
How to clear a player's armor?
The Gaming Grunts Thanks. I couldn't find that method before.
How do you close an inventory? Thanks.
I'm not exactly sure how to add to a player's current health. Help please? Never-mind, I'm stupid. EDIT by Moderator: merged posts, please use...
Eh, what class should I put the EventHandler in? Never mind, I fixed it. Thanks for all of your help! :D EDIT by Moderator: merged posts, please...
This is the code I'm currently using: if (cmd.getName().equalsIgnoreCase("egg")){ Player player = (Player) sender;...
I'm trying to make a command that will shoot an egg that blows up. This is the code I am currently using: if...
Ok I'll try that. This is the code I'm currently using: if (cmd.getName().equalsIgnoreCase("egg")){ Player player = (Player) sender;...
So basically what I'm trying to do is make a command that shoots an egg that explodes on contact. I can get the egg to shoot, but I'm not sure how...
I deleted what I had. I kept getting errors and I couldn't figure out why. Do you think I would need to make a separate class for the snowball.
Ok. What I'm trying to do is make a command that shoots a snowball that explodes on contact. I have many other commands that shoot various things...
Could you post the fixed code if you still have it? It would be useful in the current plugin I'm developing. Thanks :D
Separate names with a comma.