Quick rounding implementation added into /f top.
This commit is contained in:
parent
25ac8f026e
commit
707b7796c6
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user