diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportHomePage.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportHomePage.java index 8efa995b5..4a95855a9 100644 --- a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportHomePage.java +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportHomePage.java @@ -36,7 +36,8 @@ public class SupportHomePage extends SupportPage private void buildUnavailableButton(int slot) { - addItem(slot, new ShopItem(Material.BARRIER, C.cRedB + "Unavailable", new String[] { + addItem(slot, new ShopItem(Material.BARRIER, C.cRedB + "Unavailable", new String[] + { C.cRed + "Sorry, but this button is", C.cRed + "not currently available.", C.cGray + " ", @@ -51,7 +52,8 @@ public class SupportHomePage extends SupportPage try { pageConstructor = clazz.getConstructor(CustomerSupport.class, SupportShop.class, Player.class, CoreClient.class, SupportPage.class); - } catch (NoSuchMethodException e) + } + catch (NoSuchMethodException e) { System.out.println("Could not get page constructor:"); e.printStackTrace(); @@ -59,11 +61,13 @@ public class SupportHomePage extends SupportPage return; } - addButton(slot, shopItem, (p, c) -> { + addButton(slot, shopItem, (p, c) -> + { try { getShop().openPageForPlayer(getPlayer(), (SupportPage) pageConstructor.newInstance(getPlugin(), getShop(), getPlayer(), _target, this)); - } catch (InstantiationException | IllegalAccessException | InvocationTargetException e) + } + catch (InstantiationException | IllegalAccessException | InvocationTargetException e) { System.out.println("Could not instantiate page:"); e.printStackTrace(); @@ -89,46 +93,54 @@ public class SupportHomePage extends SupportPage { super.buildPage(); - buildPageButton(getSlotIndex(1, 2), new ShopItem(Material.CHEST, "Chests", new String[] { + buildPageButton(getSlotIndex(1, 2), new ShopItem(Material.CHEST, "Chests", new String[] + { C.mBody + "Click to view or add", C.mBody + "chests for " + C.cYellow + _target.getName() }, 1, false, true), SupportChestPage.class); - buildPageButton(getSlotIndex(1, 4), new ShopItem(Material.EMERALD, "Currency", new String[] { - C.mBody + "Click to view gems or", - C.mBody + "shard packages for " + C.cYellow + _target.getName() + buildPageButton(getSlotIndex(1, 4), new ShopItem(Material.EMERALD, "Currency", new String[] + { + C.mBody + "Click to view Gem or", + C.mBody + "Shard packages for " + C.cYellow + _target.getName() }, 1, false, true), SupportCurrencyPage.class); - buildPageButton(getSlotIndex(1, 6), new ShopItem(Material.GOLD_INGOT, "PowerPlay Club", new String[] { + buildPageButton(getSlotIndex(1, 6), new ShopItem(Material.GOLD_INGOT, "PowerPlay Club", new String[] + { C.mBody + "Click to view PowerPlay", - C.mBody + "club info for " + C.cYellow + _target.getName() + C.mBody + "Club info for " + C.cYellow + _target.getName() }, 1, false, true), SupportPowerplayPage.class, () -> getShop().getPowerPlayData().get(_target.getAccountId()) != null); - buildPageButton(getSlotIndex(3, 2), new ShopItem(Material.ENCHANTED_BOOK, "Rank Bonus", new String[] { + buildPageButton(getSlotIndex(3, 2), new ShopItem(Material.ENCHANTED_BOOK, "Rank Bonus", new String[] + { C.mBody + "Click to view rank", C.mBody + "bonus log for " + C.cYellow + _target.getName() }, 1, false, true), SupportRankBonusPage.class, () -> getShop().getBonusLog().get(_target.getAccountId()) != null); - buildPageButton(getSlotIndex(3, 4), new ShopItem(Material.BOOK_AND_QUILL, "Rank Utilities", new String[] { + buildPageButton(getSlotIndex(3, 4), new ShopItem(Material.BOOK_AND_QUILL, "Rank Utilities", new String[] + { C.mBody + "Click to view ranks", C.mBody + "and monthly bonus", C.mBody + "items for " + C.cYellow + _target.getName() }, 1, false, true), SupportRankListPage.class); - buildPageButton(getSlotIndex(3, 6), new ShopItem(Material.BONE, "Pets", new String[] { + buildPageButton(getSlotIndex(3, 6), new ShopItem(Material.BONE, "Pets", new String[] + { C.mBody + "Click to view pets", C.mBody + "for " + C.cYellow + _target.getName() }, 1, false, true), SupportPetPage.class); - buildPageButton(getSlotIndex(5, 2), new ShopItem(Material.HAY_BLOCK, "Misc Packages", new String[] { + buildPageButton(getSlotIndex(5, 2), new ShopItem(Material.HAY_BLOCK, "Misc Packages", new String[] + { C.mBody + "Click to view misc", C.mBody + "packages, such as", C.mBody + "Frost Lord and", - C.mBody + "rainbow bundle." + C.mBody + "Rainbow bundles." }, 1, false, true), SupportMiscPackagePage.class); - buildPageButton(getSlotIndex(5, 4), new ShopItem(Material.IRON_SWORD, "Clans Packages", new String[] { - C.mBody + "Click to view clans", + buildPageButton(getSlotIndex(5, 4), new ShopItem(Material.IRON_SWORD, "Clans Packages", new String[] + { + C.mBody + "Click to view Clans", C.mBody + "packages, such as", C.mBody + "Boss Tokens and", C.mBody + "Supply Drops."