mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-18 20:41:37 +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();
|
final BigDecimal userMoney = user.getMoney();
|
||||||
user.updateMoneyCache(userMoney);
|
user.updateMoneyCache(userMoney);
|
||||||
totalMoney = totalMoney.add(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