You can deposit or withdraw a specific amount of money from account by using banco's AccountManager:
...
public void testDeposit(final @NotNull UUID playerUuid) {
BigDecimal amount = BigDecimal.valueOf(1.5);
// First, we'll get player's account
Account account = Banco.get().getAccountManager().get(playerUuid);
if (account == null)
return;
// Then we can deposit money by using deposit(account, amount)
Banco.get().getAccountManager().deposit(account, amount);
}
public void testWithdraw(final @NotNull UUID playerUuid) {
BigDecimal amount = BigDecimal.valueOf(1.5);
// First, we'll get player's account
Account account = Banco.get().getAccountManager().get(playerUuid);
if (account == null)
return;
// Then we can withdraw money by using withdraw(account, amount)
Banco.get().getAccountManager().withdraw(account, amount);
}