add SupportPage#ownsSalesPackage and SupportPage#getOwnedCount
This commit is contained in:
parent
45de19163f
commit
9703b10714
|
@ -223,6 +223,16 @@ public class SupportPage extends ShopPageBase<CustomerSupport, SupportShop>
|
||||||
giveUnknownSalesPackage(itemName, false);
|
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
|
@Override
|
||||||
protected void buildPage()
|
protected void buildPage()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue