Add constructor that allows gadget pages to not be built immediately

This commit is contained in:
Graphica 2017-07-29 22:25:21 -04:00 committed by cnr
parent 4a7971b843
commit 4b052e111a

View File

@ -40,10 +40,18 @@ import mineplex.core.shop.page.ShopPageBase;
public class GadgetPage extends ShopPageBase<CosmeticManager, CosmeticShop>
{
public GadgetPage(CosmeticManager plugin, CosmeticShop shop, CoreClientManager clientManager, DonationManager donationManager, String name, Player player)
{
this(plugin, shop, clientManager, donationManager, name, player, true);
}
public GadgetPage(CosmeticManager plugin, CosmeticShop shop, CoreClientManager clientManager, DonationManager donationManager, String name, Player player, boolean build)
{
super(plugin, shop, clientManager, donationManager, name, player, 54);
buildPage();
if (build)
{
buildPage();
}
}
protected void buildPage()