Quick rounding implementation added into /f top.

This commit is contained in:
ProSavage 2019-02-12 07:54:58 -04:00
parent 25ac8f026e
commit 707b7796c6
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ public class CmdTop extends FCommand {
} else { // Last one is balance, and it has 3 different things it could be.
double balance = Econ.getBalance(faction.getAccountId());
for (FPlayer fp : faction.getFPlayers()) {
balance = balance + Econ.getBalance(fp.getAccountId());
balance = Math.round(balance + Econ.getBalance(fp.getAccountId()));
}
return String.valueOf(balance);
}