Number currency buttons in order of increasing value
This commit is contained in:
parent
876ba8fb1f
commit
9f134b5772
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user