mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-12 22:04:14 +01:00
Don't list NPCs in /baltop
output.
This commit is contained in:
parent
ebe6abd885
commit
e95fad0453
@ -96,7 +96,7 @@ public class Commandbalancetop extends EssentialsCommand {
|
|||||||
} else {
|
} else {
|
||||||
for (UUID u : ess.getUserMap().getAllUniqueUsers()) {
|
for (UUID u : ess.getUserMap().getAllUniqueUsers()) {
|
||||||
final User user = ess.getUserMap().getUser(u);
|
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();
|
final BigDecimal userMoney = user.getMoney();
|
||||||
user.updateMoneyCache(userMoney);
|
user.updateMoneyCache(userMoney);
|
||||||
totalMoney = totalMoney.add(userMoney);
|
totalMoney = totalMoney.add(userMoney);
|
||||||
|
Loading…
Reference in New Issue
Block a user