DyeColor color = ((Wool) player.getHelmet().getState().getColor()); if(color == DyeColor.BLUE) { } But make sure you check that the player...
public class Main extends JavaPlugin implements Listener { In your main class, you don't need to implement Listener. @EventHandler public void...
(instance of player).hasPlayedBefore() Will return a boolean, based on the world file you are using.
Not sure why it's not working for you, but may I ask why you're not using runTaskLater()?
if (item.getType() == Material.MONSTER_EGG && item.getData().getData() == (byte)50) Sorry, try that.
You could split up that if statement: if (item.getType() == Material.MONSTER_EGG && item.getData() == (byte)50) Or you could create a new...
Alternatively, you could store entity ID's in an ArrayList. It's probably easier than getting/setting metadata, but it's personal preference really.
What exactly are you planning to do with this? Just curious.
Sorry to break it to you, but no one's going to tell you what all the obfuscated methods do. You can try a few things though: Google it and...
So you might be looking for the method getTargetBlock(). It gets the block in the player's LOS at a specified distance. I.E....
This is odd. [IMG] It definitely worked for me. Technes Could you be using a pre 1.6.2 version of CB?
Okay, I'll try and walk you through this. if (e.getBlock().breakNaturally()) { } This little if statement is not needed. Because you're...
Separate names with a comma.