Fix negative math with monies
This commit is contained in:
parent
2b9ee96493
commit
78e8a6d36e
@ -84,7 +84,7 @@ public class EconomyAPI implements Economy {
|
||||
private EconomyResponse adjustPlayer(String playerName, double amount) {
|
||||
BalanceAdjustResponse resp;
|
||||
try {
|
||||
resp = m_p.api().adjustBalance(playerName, -amount);
|
||||
resp = m_p.api().adjustBalance(playerName, amount);
|
||||
} catch (IOException e) {
|
||||
return new EconomyResponse(0, 0, ResponseType.FAILURE, "Could not contact api.camin.us.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user