From 51920420ce6b2a92cb5bb0b29421be913e69a794 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Thu, 3 Nov 2011 22:19:33 +0000 Subject: [PATCH] Allow proper escaping and use of & symbol in nicks (&& = &). --- .../src/com/earth2me/essentials/commands/Commandnick.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandnick.java b/Essentials/src/com/earth2me/essentials/commands/Commandnick.java index 0630b3267..534547e34 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandnick.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandnick.java @@ -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)