From 18c808095132f173a4294e7f09a838cab34b3dae Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Sat, 19 Nov 2016 12:14:36 -0500 Subject: [PATCH] Created Potatoes without Static Command --- .../components/insurance/getInsuranceBar.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/alisolarflare/components/insurance/getInsuranceBar.java b/src/alisolarflare/components/insurance/getInsuranceBar.java index a024f82..6c5e0b1 100644 --- a/src/alisolarflare/components/insurance/getInsuranceBar.java +++ b/src/alisolarflare/components/insurance/getInsuranceBar.java @@ -1,8 +1,13 @@ package alisolarflare.components.insurance; +import java.util.Arrays; + import org.apache.commons.lang3.StringUtils; +import org.bukkit.Material; import org.bukkit.command.CommandSender; +import org.bukkit.enchantments.Enchantment; import org.bukkit.entity.Player; +import org.bukkit.inventory.ItemStack; import alisolarflare.components.ModCommand; import alisolarflare.components.insurance.Insurance.InsuranceType; @@ -16,6 +21,12 @@ public class getInsuranceBar extends ModCommand { player.getInventory().addItem(Insurance.getInsurance(InsuranceType.Ingot, Integer.parseInt(args[0]))); }else{ player.getInventory().addItem(Insurance.getInsurance(InsuranceType.Ingot)); + + ItemStack potato = new ItemStack(Material.BAKED_POTATO); + potato.getItemMeta().setDisplayName("Spicy Debug Potato"); + potato.getItemMeta().setLore(Arrays.asList("Hwat the fuck")); + potato.addUnsafeEnchantment(Enchantment.ARROW_FIRE, 10); + player.getInventory().addItem(potato); } return false; }