mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-03 22:11:42 +01:00
Allow proper escaping and use of & symbol in nicks (&& = &).
This commit is contained in:
parent
d171cce45d
commit
51920420ce
@ -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…
Reference in New Issue
Block a user