After you check if the meta has lore, get the lore. If it equals the lore that you want, set the result. If not, it's not the stick you want.
A problem with checking for colors is if you try to rename the custom item with an anvil, its formatting breaks. I would add a line of lore and...
Try skull.setDurability((short) 3); after you create the itemstack. I was having the same trouble until I changed the damage this way.
You're only giving the potion effect for one tick. Change the first number to 20 x # of seconds
Never mind, I've managed to get a desirable effect by removing the potion effect and then adding one with a higher time. PotionEffect effect =...
How would I add time to a potion effect that a player already has, like what a beacon does. Currently, I'm using player.addPotionEffect(new...
It's not really too advanced. Here's what it does: The HashSet is basically a list of player's names, if you're hiding (your example), you're on...
An easy way to toggle something is to make a set of the playername. private Set<Player> climb = new HashSet<Player>(); When you want to toggle it,...
Potions increase the data value to determine exactly what kind it is, like Splash, level 1 or 2, stuff like that. If you want to just get the...
First, you'll want to check if you have any arguments with if (args.length == int) { You should check if it's 0, then do your /aether command....
[syntax=java]private void addRecipe() { final ItemStack is = new ItemStack(Material.MUSHROOM_SOUP, 1); final ItemMeta im = is.getItemMeta();...
I deleted a closing quotation while I was changing my recipe to yours. Make sure to close "§fCacti Juice with another quotation mark. EDIT: Ninja'd
Oh, sorry, I didn't notice that they were shapeless recipes. change everything from final Shaped Recipe to whatever your recipe code is. Make...
Use [ syntax=java ] when typing code. Cocoa beans are a dye, so you'll need to attach the data value. This is a method for creating a recipe...
Hmmm, I wouldn't waste a valuable side of the pumpkin for a sign. Maybe you type a command and right click the machine, or do something similar....
Separate names with a comma.