From b22fe90afe910f5e21c37bda291b85bfba8aa0d8 Mon Sep 17 00:00:00 2001 From: Spencer Date: Sun, 7 Jan 2018 00:09:34 -0500 Subject: [PATCH] Add whether clans banners are enabled or not in ClansPackage --- .../ui/packages/SupportClansPackagePage.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/packages/SupportClansPackagePage.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/packages/SupportClansPackagePage.java index 185aaef48..50e3b5887 100644 --- a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/packages/SupportClansPackagePage.java +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/packages/SupportClansPackagePage.java @@ -7,6 +7,7 @@ import org.bukkit.Material; import org.bukkit.entity.Player; import mineplex.core.account.CoreClient; +import mineplex.core.common.util.C; import mineplex.core.itemstack.ItemBuilder; import mineplex.staffServer.customerSupport.CustomerSupport; import mineplex.staffServer.ui.SupportPage; @@ -45,10 +46,15 @@ public class SupportClansPackagePage extends SupportPackagePage private void addClanBanner(DyeColor color, String unlock) { + String packageName = "Clan Banner " + unlock; + _packageList.add(getPackagePair( - new ItemBuilder(Material.BANNER).setData(color.getData()), + new ItemBuilder(Material.BANNER) + .setData(color.getData()) + .addLore(C.mBody + "Is Active: " + (ownsSalesPackage(packageName) ? C.cGreen + "Yes" : C.cRed + "No")) + .addLore(""), "Banner " + unlock, - "Clan Banner " + unlock + packageName )); }