Add whether clans banners are enabled or not in ClansPackage
This commit is contained in:
parent
9703b10714
commit
b22fe90afe
@ -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
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user