Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Add zero-width-space to display name.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed Apr 30, 2016
1 parent 784d85a commit 4085d47
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -770,18 +770,21 @@ public String reportRTSTokenizer(CommandSender sender, String message, String te
*/
public String playerTokenizer(Player player, String message) {
String pName;
String displayName;
if (plugin.pingFixTemplate) {
pName = addZeroWidthSpace(player.getName());
displayName = addZeroWidthSpace(player.getDisplayName());
} else {
pName = player.getName();
displayName = player.getDisplayName();
}
plugin.logDebug("Tokenizing " + pName + "(O: " + player.isOnline() + ")");
String pSuffix = plugin.getPlayerSuffix(player);
String pPrefix = plugin.getPlayerPrefix(player);
String gPrefix = plugin.getGroupPrefix(player);
String gSuffix = plugin.getGroupSuffix(player);
String group = plugin.getPlayerGroup(player);
String displayName = player.getDisplayName();

UUID uuid = player.getUniqueId();
String playerIP = "";
try {
Expand Down

0 comments on commit 4085d47

Please sign in to comment.