mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-25 11:35:36 +01:00
Add zero-width-space to display name.
This commit is contained in:
parent
d5198d3129
commit
2fedc55ea5
@ -770,10 +770,13 @@ public class ChatTokenizer {
|
||||
*/
|
||||
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);
|
||||
@ -781,7 +784,7 @@ public class ChatTokenizer {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user