No! My way!

This commit is contained in:
Norbi Peti 2016-11-20 02:30:25 +01:00
parent 60730ac994
commit aabc2b057f

View file

@ -15,13 +15,9 @@ public class DebugPotatoAPI {
ItemStack potato = new ItemStack(Material.BAKED_POTATO); ItemStack potato = new ItemStack(Material.BAKED_POTATO);
ItemMeta meta = potato.getItemMeta(); ItemMeta meta = potato.getItemMeta();
meta.setDisplayName(dp.getType() == null ? "Spicy Debug Potato" : dp.getType()); meta.setDisplayName(dp.getType() == null ? "Spicy Debug Potato" : dp.getType());
if (dp.getMessage() == null){ if (dp.getMessage() == null)
List<String> message = new ArrayList<String>(); dp.setMessage("nullMessage");
message.add("nullMessage"); meta.setLore(dp.getMessage());
meta.setLore(message);
}else{
meta.setLore(dp.getMessage());
}
potato.setItemMeta(meta); potato.setItemMeta(meta);
potato.addUnsafeEnchantment(Enchantment.ARROW_FIRE, 10); potato.addUnsafeEnchantment(Enchantment.ARROW_FIRE, 10);
return potato; return potato;