Skip to content

Commit 5e6f6b2

Browse files
committed
Tweak /baltop to not show displaynames on vanished players.
1 parent 29c9a46 commit 5e6f6b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Essentials/src/com/earth2me/essentials/commands/Commandbalancetop.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ public void run()
117117
final BigDecimal userMoney = user.getMoney();
118118
user.updateMoneyCache(userMoney);
119119
totalMoney = totalMoney.add(userMoney);
120-
balances.put(user.getDisplayName(), userMoney);
120+
final String name = user.isHidden() ? user.getName() : user.getDisplayName();
121+
balances.put(name, userMoney);
121122
}
122123
}
123124

0 commit comments

Comments
 (0)