Allow proper escaping and use of & symbol in nicks (&& = &).

This commit is contained in:
KHobbits 2011-11-03 22:19:33 +00:00
parent d171cce45d
commit 51920420ce

View File

@ -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)