diff --git a/src/main/java/rip/tilly/bedwars/menus/shop/utilities/UtilityButton.java b/src/main/java/rip/tilly/bedwars/menus/shop/utilities/UtilityButton.java index d3428de..f74433f 100644 --- a/src/main/java/rip/tilly/bedwars/menus/shop/utilities/UtilityButton.java +++ b/src/main/java/rip/tilly/bedwars/menus/shop/utilities/UtilityButton.java @@ -20,7 +20,7 @@ import java.util.List; public class UtilityButton extends Button { private String name; - private List lore; + private String[] lore; private Material material; private int data; private int amount; diff --git a/src/main/java/rip/tilly/bedwars/menus/shop/utilities/UtilityMenu.java b/src/main/java/rip/tilly/bedwars/menus/shop/utilities/UtilityMenu.java index 4757bd8..6bff6a3 100644 --- a/src/main/java/rip/tilly/bedwars/menus/shop/utilities/UtilityMenu.java +++ b/src/main/java/rip/tilly/bedwars/menus/shop/utilities/UtilityMenu.java @@ -10,9 +10,7 @@ import rip.tilly.bedwars.utils.CC; import rip.tilly.bedwars.utils.ItemBuilder; import rip.tilly.bedwars.utils.menu.Button; import rip.tilly.bedwars.utils.menu.Menu; -import java.util.ArrayList; import java.util.HashMap; -import java.util.List; import java.util.Map; public class UtilityMenu extends Menu { @@ -37,88 +35,18 @@ public class UtilityMenu extends Menu { buttons.put(types.getSlot(), new ShopTypeButton(types)); } - List lore = new ArrayList(); - buttons.put(ShopType.UTILITY.getSlot() + 9, Button.placeholder(Material.STAINED_GLASS_PANE, (byte) 5, "")); - - lore.add("Well rounded healing"); - - buttons.put(19, new UtilityButton("Golden Apple", lore, Material.GOLDEN_APPLE, 0, 1, Material.GOLD_INGOT, "Gold", ChatColor.GOLD, 3, true)); - - lore.clear(); - - lore.add("Spawns a silverfish where the"); - lore.add("snowball lands to distract your"); - lore.add("enemies"); - - buttons.put(20, new UtilityButton("Bed Bug", lore, Material.SNOW_BALL, 0, 1, Material.IRON_INGOT, "Iron", ChatColor.WHITE, 30, true)); - - lore.clear(); - - lore.add("Spawns an iron golem to help"); - lore.add("defend your base"); - - buttons.put(21, new UtilityButton("Dream Defender", lore, Material.SNOW_BALL, 0, 1, Material.IRON_INGOT, "Iron", ChatColor.WHITE, 120, true)); - - lore.clear(); - - lore.add("Right click to throw a fireball"); - lore.add("at your enemies when they are currently"); - lore.add("walking on a bridge"); - - buttons.put(22, new UtilityButton("Fireball", lore, Material.FIREBALL, 0, 1, Material.IRON_INGOT, "Iron", ChatColor.WHITE, 40, true)); - - lore.clear(); - - lore.add("Instantly ignites and is ready"); - lore.add("to explode things"); - - buttons.put(23, new UtilityButton("TNT", lore, Material.TNT, 0, 1, Material.GOLD_INGOT, "Gold", ChatColor.GOLD, 4, true)); - - lore.clear(); - - lore.add("The fastest way to get"); - lore.add("to an enemy's base"); - - buttons.put(24, new UtilityButton("Ender Pearl", lore, Material.ENDER_PEARL, 0, 1, Material.EMERALD, "Emerald", ChatColor.DARK_GREEN, 4, true)); - - lore.clear(); - - lore.add("Awesome for clutching"); - lore.add("and much more"); - - buttons.put(25, new UtilityButton("Water Bucket", lore, Material.WATER_BUCKET, 0, 1, Material.GOLD_INGOT, "Gold", ChatColor.GOLD, 6, true)); - - lore.clear(); - - lore.add("Right click to throw an egg"); - lore.add("to then make a bridge in its"); - lore.add("trail"); - - buttons.put(28, new UtilityButton("Bridge Egg", lore, Material.EGG, 0, 1, Material.EMERALD, "Emerald", ChatColor.DARK_GREEN, 1, true)); - - lore.clear(); - - lore.add("Avoid setting off a trap"); - lore.add("for thirty seconds"); - - buttons.put(29, new UtilityButton("Magic Milk", lore, Material.MILK_BUCKET, 0, 1, Material.GOLD_INGOT, "Gold", ChatColor.GOLD, 4, true)); - - lore.clear(); - - lore.add("Awesome for distracting"); - lore.add("your enemies"); - - buttons.put(30, new UtilityButton("Sponge", lore, Material.SPONGE, 0, 4, Material.GOLD_INGOT, "Gold", ChatColor.GOLD, 6, true)); - - lore.clear(); - - lore.add("Right click to make a"); - lore.add("popup tower"); - - buttons.put(31, new UtilityButton("Popup Tower", lore, Material.CHEST, 0, 1, Material.IRON_INGOT, "Iron", ChatColor.WHITE, 24, true)); - - lore.clear(); + buttons.put(19, new UtilityButton("Golden Apple", new String[]{"Well rounded healing"}, Material.GOLDEN_APPLE, 0, 1, Material.GOLD_INGOT, "Gold", ChatColor.GOLD, 3, true)); + buttons.put(20, new UtilityButton("Bed Bug", new String[]{"Spawns a silverfish where the", "snowball lands to distract your", "enemies"}, Material.SNOW_BALL, 0, 1, Material.IRON_INGOT, "Iron", ChatColor.WHITE, 30, true)); + buttons.put(21, new UtilityButton("Dream Defender", new String[]{"Spawns an iron golem to help", "defend your base"}, Material.SNOW_BALL, 0, 1, Material.IRON_INGOT, "Iron", ChatColor.WHITE, 120, true)); + buttons.put(22, new UtilityButton("Fireball", new String[]{"Right click to throw a fireball", "at your enemies when they are currently", "walking on a bridge"}, Material.FIREBALL, 0, 1, Material.IRON_INGOT, "Iron", ChatColor.WHITE, 40, true)); + buttons.put(23, new UtilityButton("TNT", new String[]{"Instantly ignites and is ready", "to explode things"}, Material.TNT, 0, 1, Material.GOLD_INGOT, "Gold", ChatColor.GOLD, 4, true)); + buttons.put(24, new UtilityButton("Ender Pearl", new String[]{"The fastest way to get", "to an enemy's base"}, Material.ENDER_PEARL, 0, 1, Material.EMERALD, "Emerald", ChatColor.DARK_GREEN, 4, true)); + buttons.put(25, new UtilityButton("Water Bucket", new String[]{"Awesome for clutching", "and much more"}, Material.WATER_BUCKET, 0, 1, Material.GOLD_INGOT, "Gold", ChatColor.GOLD, 6, true)); + buttons.put(28, new UtilityButton("Bridge Egg", new String[]{"Right click to throw an egg", "to then make a bridge in its", "path"}, Material.EGG, 0, 1, Material.EMERALD, "Emerald", ChatColor.DARK_GREEN, 1, true)); + buttons.put(29, new UtilityButton("Magic Milk", new String[]{"Avoid setting off a trap", "for thirty seconds"}, Material.MILK_BUCKET, 0, 1, Material.GOLD_INGOT, "Gold", ChatColor.GOLD, 4, true)); + buttons.put(30, new UtilityButton("Sponge", new String[]{"Awesome for distracting", "your enemies"}, Material.SPONGE, 0, 4, Material.GOLD_INGOT, "Gold", ChatColor.GOLD, 6, true)); + buttons.put(31, new UtilityButton("Popup Tower", new String[]{"Right click to make a", "popup tower"}, Material.CHEST, 0, 1, Material.IRON_INGOT, "Iron", ChatColor.WHITE, 24, true)); this.fillEmptySlots(buttons, new ItemBuilder(Material.STAINED_GLASS_PANE).durability(7).name("").build());