add suport for custom ConfirmationPage names

This commit is contained in:
Spencer 2018-01-03 12:35:23 -05:00 committed by Alexander Meech
parent 7b955dad16
commit 81619a6886
1 changed files with 7 additions and 2 deletions

View File

@ -31,9 +31,9 @@ public class ConfirmationPage<PluginType extends MiniPlugin, ShopType extends Sh
private ConfirmationProcessor _processor;
private boolean _processing;
public ConfirmationPage(Player player, ShopPageBase<PluginType, ShopType> returnPage, ConfirmationProcessor processor, ItemStack displayItem)
public ConfirmationPage(Player player, ShopPageBase<PluginType, ShopType> returnPage, ConfirmationProcessor processor, ItemStack displayItem, String name)
{
super(returnPage.getPlugin(), returnPage.getShop(), returnPage.getClientManager(), returnPage.getDonationManager(), "Confirmation", player);
super(returnPage.getPlugin(), returnPage.getShop(), returnPage.getClientManager(), returnPage.getDonationManager(), name, player);
_returnPage = returnPage;
_displayItem = displayItem;
@ -42,6 +42,11 @@ public class ConfirmationPage<PluginType extends MiniPlugin, ShopType extends Sh
buildPage();
}
public ConfirmationPage(Player player, ShopPageBase<PluginType, ShopType> returnPage, ConfirmationProcessor processor, ItemStack displayItem)
{
this(player, returnPage, processor, displayItem, "Confirmation");
}
public ConfirmationPage(Player player, PluginType plugin, ShopType shop, CoreClientManager clientManager, DonationManager donationManager, ConfirmationProcessor processor, ItemStack displayItem)
{
super(plugin, shop, clientManager, donationManager, "Confirmation", player);