Skip to content

Commit

Permalink
fix failing build
Browse files Browse the repository at this point in the history
  • Loading branch information
ryzech authored Sep 25, 2023
1 parent 9fa05ef commit bf4347e
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command
player.sendMessage(Component.text("Sorry, but you don't have enough diamonds in your account to withdraw.", NamedTextColor.RED));
} else if (player.getInventory().firstEmpty() == -1) {
player.sendMessage(Component.text("Sorry, but you don't have enough space in your inventory to deposit.", NamedTextColor.RED));
world.dropItem(player.getLocation().add(new Vector(0, 0.5, 0)), drop);
drop.setAmount(Integer.parseInt(args[0]));
drop.setType(Material.DIAMOND);
} else {
Economy.subtract(uuid, BigDecimal.valueOf(Long.parseLong(args[0])));
SmpCoreApi.giveItemMaterial(player, Material.DIAMOND, Integer.parseInt(args[0]));
Expand Down

0 comments on commit bf4347e

Please sign in to comment.