Don't list NPCs in /baltop output.

This commit is contained in:
Ali Moghnieh 2016-06-26 22:10:36 +01:00
parent ebe6abd885
commit e95fad0453

View File

@ -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);