From e95fad04539c4c97aa9f644cdad70e15173bed19 Mon Sep 17 00:00:00 2001 From: Ali Moghnieh Date: Sun, 26 Jun 2016 22:10:36 +0100 Subject: [PATCH] Don't list NPCs in `/baltop` output. --- .../src/com/earth2me/essentials/commands/Commandbalancetop.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandbalancetop.java b/Essentials/src/com/earth2me/essentials/commands/Commandbalancetop.java index e8c9bcd0b..9f1a3b1be 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandbalancetop.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandbalancetop.java @@ -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);