mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-24 06:23:59 +00:00
Allow proper escaping and use of & symbol in nicks (&& = &).
This commit is contained in:
parent
d171cce45d
commit
51920420ce
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ public class Commandnick extends EssentialsCommand
|
|||
}
|
||||
else
|
||||
{
|
||||
final String formattedNick = nick.replace('&', '§').replace('§§', '&');
|
||||
final String formattedNick = nick.replace('&', '\u00a7').replace("\u00a7\u00a7", "&");
|
||||
for (Player p : server.getOnlinePlayers())
|
||||
{
|
||||
if (target.getBase() == p)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue