add SupportPage#ownsSalesPackage and SupportPage#getOwnedCount

This commit is contained in:
Spencer 2018-01-07 00:09:18 -05:00 committed by Alexander Meech
parent 45de19163f
commit 9703b10714
1 changed files with 10 additions and 0 deletions

View File

@ -223,6 +223,16 @@ public class SupportPage extends ShopPageBase<CustomerSupport, SupportShop>
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()
{