For Steps 1-5, you are expected to have your onCommand method, as well as your onEnable and onDisable ready, with your Plugin.yml. 1: Create the ItemStack. I am going to create a ItemStack names IceCream, and make it 1 piece of Sugar. Code:java ItemStack IceCream = new ItemStack(Material.SUGAR, 1); 2: We are going to make the ItemMeta. I am going to call it IceCreamMeta. Code:java ItemMeta IceCreamMeta = IceCream.getItemMeta(); 3: This is where we do the actually renaming. You can use IceCreamMeta. to see a list, but I am just going to rename it. Also, this works with ChatColors. Code:java IceCreamMeta.setDisplayName("IceCream"); 4: We are now going to rap this up. We need to set IceCream to IceCreamMeta. Code:java IceCream.setItemMeta(IceCreamMeta); 5: OPTIONAL: You can now give it to the player's inventory. Code:java Inventory pi = player.getInventory();pi.addItem(IceCream) The Final Product: Code:java if (alias.equalsIgnoreCase("GiveMeIceCream")) {Player player = (Player) sender;Inventory pi = player.getInventory(); ItemStack IceCream = new ItemStack(Material.SUGAR, 1);ItemMeta IceCreamMeta = IceCream.getItemMeta();IceCreamMeta.setDisplayName("IceCream");IceCream.setItemMeta(IceCreamMeta); pi.addItem(IceCream);}
JPG2000 Chasechocolate is DBO staff, we need a forum mod to do this JPG2000 I really shouldn't tahg staff, but here goes nothing: Jade Otherwise, it's fine although many people can just look up "How to name items Bukkit" on google. On the other hand, some people are too stupid to do so... EDIT by Moderator: merged posts, please use the edit button instead of double posting.
chasechocolate I did. But then Jade came to the rescue 26 minutes later, which I have to say, is responding to a 911 call and finding the house completely obliterated by the fire :/. Well. Would've taken more time than tagging maybe Jade should get one of those page reloader thingys like chaseos has.