mirror of
https://github.com/songoda/EpicHoppers.git
synced 2025-01-07 08:27:45 +01:00
fixed balance withdraw.
This commit is contained in:
parent
17df752c1b
commit
f183c73153
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user