Number currency buttons in order of increasing value

This commit is contained in:
Spencer 2018-01-06 16:46:13 -05:00 committed by Alexander Meech
parent 876ba8fb1f
commit 9f134b5772

View File

@ -30,7 +30,7 @@ public class SupportCurrencyPage extends SupportPage
int amount = CURRENCY_DEMONINATIONS[i]; int amount = CURRENCY_DEMONINATIONS[i];
addButton(slot, addButton(slot,
new ShopItem(currency.getDisplayMaterial(), currency.getColor() + C.Bold + currency.getString(amount, false), new String[] {C.mBody + "Click to award " + currency.getString(amount) }, 1, false, true), new ShopItem(currency.getDisplayMaterial(), currency.getColor() + C.Bold + currency.getString(amount, false), new String[] {C.mBody + "Click to award " + currency.getString(amount) }, i + 1, false, true),
(p, c) -> getPlugin().getDonationManager().rewardCurrency(currency, _target, "Support - " + getPlayer().getName(), amount, true, (success) -> { (p, c) -> getPlugin().getDonationManager().rewardCurrency(currency, _target, "Support - " + getPlayer().getName(), amount, true, (success) -> {
if (success) if (success)
{ {