From 9703b10714e7d26ba184e804fce571c86ea59433 Mon Sep 17 00:00:00 2001 From: Spencer Date: Sun, 7 Jan 2018 00:09:18 -0500 Subject: [PATCH] add SupportPage#ownsSalesPackage and SupportPage#getOwnedCount --- .../src/mineplex/staffServer/ui/SupportPage.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportPage.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportPage.java index 2a4f61911..6b2ebf5b9 100644 --- a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportPage.java +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/ui/SupportPage.java @@ -223,6 +223,16 @@ public class SupportPage extends ShopPageBase giveUnknownSalesPackage(itemName, false); } + protected boolean ownsSalesPackage(String packageName) + { + return getDonationManager().Get(_target.getUniqueId()).ownsUnknownSalesPackage(packageName); + } + + protected int getOwnedCount(String packageName) + { + return getPlugin().getInventoryManager().Get(_target.getUniqueId()).getItemCount(packageName); + } + @Override protected void buildPage() {