Add whether clans banners are enabled or not in ClansPackage

This commit is contained in:
Spencer 2018-01-07 00:09:34 -05:00 committed by Alexander Meech
parent 9703b10714
commit b22fe90afe

View File

@ -7,6 +7,7 @@ import org.bukkit.Material;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import mineplex.core.account.CoreClient; import mineplex.core.account.CoreClient;
import mineplex.core.common.util.C;
import mineplex.core.itemstack.ItemBuilder; import mineplex.core.itemstack.ItemBuilder;
import mineplex.staffServer.customerSupport.CustomerSupport; import mineplex.staffServer.customerSupport.CustomerSupport;
import mineplex.staffServer.ui.SupportPage; import mineplex.staffServer.ui.SupportPage;
@ -45,10 +46,15 @@ public class SupportClansPackagePage extends SupportPackagePage
private void addClanBanner(DyeColor color, String unlock) private void addClanBanner(DyeColor color, String unlock)
{ {
String packageName = "Clan Banner " + unlock;
_packageList.add(getPackagePair( _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, "Banner " + unlock,
"Clan Banner " + unlock packageName
)); ));
} }