mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-09 12:30:42 +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 {
|
||||
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 New Issue
Block a user