From 81619a6886692a026e1208b6283c1425a41bac6d Mon Sep 17 00:00:00 2001 From: Spencer Date: Wed, 3 Jan 2018 12:35:23 -0500 Subject: [PATCH] add suport for custom ConfirmationPage names --- .../core/shop/confirmation/ConfirmationPage.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/shop/confirmation/ConfirmationPage.java b/Plugins/Mineplex.Core/src/mineplex/core/shop/confirmation/ConfirmationPage.java index 67a43b2e8..89e252f2f 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/shop/confirmation/ConfirmationPage.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/shop/confirmation/ConfirmationPage.java @@ -31,9 +31,9 @@ public class ConfirmationPage returnPage, ConfirmationProcessor processor, ItemStack displayItem) + public ConfirmationPage(Player player, ShopPageBase 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 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);