mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 05:01:28 +00:00
Don't list NPCs in /baltop
output.
This commit is contained in:
parent
ebe6abd885
commit
e95fad0453
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ public class Commandbalancetop extends EssentialsCommand {
|
|||
} else {
|
||||
for (UUID u : ess.getUserMap().getAllUniqueUsers()) {
|
||||
final User user = ess.getUserMap().getUser(u);
|
||||
if (user != null) {
|
||||
if (user != null && !user.isNPC()) { // Don't list NPCs in output
|
||||
final BigDecimal userMoney = user.getMoney();
|
||||
user.updateMoneyCache(userMoney);
|
||||
totalMoney = totalMoney.add(userMoney);
|
||||
|
|
Loading…
Reference in a new issue