Alter readme to use BigDecimal in example.

This commit is contained in:
LlmDl 2023-12-11 14:06:10 -06:00
parent 79bb998347
commit b52495b66f
1 changed files with 1 additions and 1 deletions

View File

@ -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 {