mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-03 22:08:28 +00:00
Fix behaviour of /list when showing real names (#3858)
This commit is contained in:
parent
c6de77130f
commit
b84aaa1dab
1 changed files with 3 additions and 1 deletions
|
@ -37,7 +37,9 @@ public final class PlayerList {
|
|||
}
|
||||
user.setDisplayNick();
|
||||
groupString.append(user.getDisplayName());
|
||||
if (ess.getSettings().realNamesOnList() && !ChatColor.stripColor(user.getDisplayName()).equals(user.getName())) {
|
||||
|
||||
final String strippedNick = FormatUtil.stripFormat(user.getNickname());
|
||||
if (ess.getSettings().realNamesOnList() && strippedNick != null && !strippedNick.equals(user.getName())) {
|
||||
groupString.append(" (").append(user.getName()).append(")");
|
||||
}
|
||||
groupString.append(ChatColor.WHITE.toString());
|
||||
|
|
Loading…
Reference in a new issue