Skip to content

Commit

Permalink
Alter readme to use BigDecimal in example.
Browse files Browse the repository at this point in the history
  • Loading branch information
LlmDl committed Dec 11, 2023
1 parent 79bb998 commit b52495b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public class ExamplePlugin extends JavaPlugin {
if(command.getLabel().equals("test-economy")) {
// Lets give the player 1.05 currency (note that SOME economic plugins require rounding!)
sender.sendMessage(String.format("You have %s", econ.format(econ.getBalance(player.getUniqueId()))));
EconomyResponse r = econ.depositPlayer(player.getUniqueId(), 1.05);
EconomyResponse r = econ.depositPlayer(player.getUniqueId(), new BigDecimal("1.05"));
if(r.transactionSuccess()) {
sender.sendMessage(String.format("You were given %s and now have %s", econ.format(r.amount), econ.format(r.balance)));
} else {
Expand Down

0 comments on commit b52495b

Please sign in to comment.