No! My way!
This commit is contained in:
parent
60730ac994
commit
aabc2b057f
1 changed files with 3 additions and 7 deletions
|
@ -15,13 +15,9 @@ public class DebugPotatoAPI {
|
|||
ItemStack potato = new ItemStack(Material.BAKED_POTATO);
|
||||
ItemMeta meta = potato.getItemMeta();
|
||||
meta.setDisplayName(dp.getType() == null ? "Spicy Debug Potato" : dp.getType());
|
||||
if (dp.getMessage() == null){
|
||||
List<String> message = new ArrayList<String>();
|
||||
message.add("nullMessage");
|
||||
meta.setLore(message);
|
||||
}else{
|
||||
meta.setLore(dp.getMessage());
|
||||
}
|
||||
if (dp.getMessage() == null)
|
||||
dp.setMessage("nullMessage");
|
||||
meta.setLore(dp.getMessage());
|
||||
potato.setItemMeta(meta);
|
||||
potato.addUnsafeEnchantment(Enchantment.ARROW_FIRE, 10);
|
||||
return potato;
|
||||
|
|
Loading…
Reference in a new issue