mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 20:11:21 +02:00
Tweak /baltop to not show displaynames on vanished players.
This commit is contained in:
@@ -117,7 +117,8 @@ public class Commandbalancetop extends EssentialsCommand
|
||||
final BigDecimal userMoney = user.getMoney();
|
||||
user.updateMoneyCache(userMoney);
|
||||
totalMoney = totalMoney.add(userMoney);
|
||||
balances.put(user.getDisplayName(), userMoney);
|
||||
final String name = user.isHidden() ? user.getName() : user.getDisplayName();
|
||||
balances.put(name, userMoney);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user