Add constructor that allows gadget pages to not be built immediately
This commit is contained in:
parent
4a7971b843
commit
4b052e111a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user