From e15a0046461844c17ce57a1eb8779205cb2a7a4c Mon Sep 17 00:00:00 2001 From: Spencer Date: Sat, 6 Jan 2018 21:47:06 -0500 Subject: [PATCH] Add Davy Jones' booty item --- .../staffServer/ui/chest/SupportChestPage.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/chest/SupportChestPage.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/chest/SupportChestPage.java index 04160702f..66c6f8cc7 100644 --- a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/chest/SupportChestPage.java +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/chest/SupportChestPage.java @@ -7,12 +7,14 @@ import java.util.List; import java.util.Map; import java.util.stream.Collectors; +import org.bukkit.Material; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; import mineplex.core.account.CoreClient; import mineplex.core.common.util.C; +import mineplex.core.itemstack.ItemBuilder; import mineplex.core.shop.page.MultiPageManager; import mineplex.core.treasure.types.TreasureType; import mineplex.staffServer.customerSupport.CustomerSupport; @@ -100,5 +102,13 @@ public class SupportChestPage extends SupportPage super.buildPage(); _multiPageManager.buildPage(); + + addItem(getSlotIndex(5, 4), + new ItemBuilder(Material.GOLD_INGOT) + .setTitle(C.cGreenB + "Davy Jones' Booty") + .addLore(C.mBody + "Old Chests Received: " + C.cYellow + _treasurePurchasedShop.get(TreasureType.OLD)) + .addLore(C.mBody + "Ancient Chests Received: " + C.cYellow + _treasurePurchasedShop.get(TreasureType.ANCIENT)) + .addLore(C.mBody + "Mythical Chests Received: " + C.cYellow + _treasurePurchasedShop.get(TreasureType.MYTHICAL)) + .build()); } }