fixed balance withdraw.

This commit is contained in:
Brianna 2019-05-26 22:41:13 -04:00
parent 17df752c1b
commit f183c73153

View File

@ -77,6 +77,7 @@ public class Hopper {
player.sendMessage(plugin.references.getPrefix() + plugin.getInstance().getLocale().getMessage("event.upgrade.cannotafford"));
return;
}
plugin.getEconomy().withdrawBalance(player, cost);
upgradeFinal(level, player);
} else if (type == CostType.EXPERIENCE) {
if (player.getLevel() >= cost || player.getGameMode() == GameMode.CREATIVE) {