Skip to content

Commit 07f45b7

Browse files
authored
Add translation for /list real name (EssentialsX#4614)
Co-authored-by: Bobcat00 <[email protected]>
1 parent 5402f51 commit 07f45b7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Essentials/src/main/java/com/earth2me/essentials/PlayerList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static String listUsers(final IEssentials ess, final List<User> users, fi
4242

4343
final String strippedNick = FormatUtil.stripFormat(user.getNickname());
4444
if (ess.getSettings().realNamesOnList() && strippedNick != null && !strippedNick.equals(user.getName())) {
45-
groupString.append(" (").append(user.getName()).append(")");
45+
groupString.append(" ").append(tl("listRealName",user.getName()));
4646
}
4747
groupString.append(ChatColor.WHITE.toString());
4848
}

Essentials/src/main/resources/messages.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ listCommandUsage1=/<command> [group]
662662
listCommandUsage1Description=Lists all players on the server, or the given group if specified
663663
listGroupTag=\u00a76{0}\u00a7r\:
664664
listHiddenTag=\u00a77[HIDDEN]\u00a7r
665+
listRealName=({0})
665666
loadWarpError=\u00a74Failed to load warp {0}.
666667
localFormat=[L]<{0}> {1}
667668
localNoOne=

0 commit comments

Comments
 (0)