summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-11-03 22:19:33 +0000
committerKHobbits <rob@khobbits.co.uk>2011-11-03 22:19:33 +0000
commit90223c6aed40a93b89425e6029fd90d6d18af8d0 (patch)
treec38880021949297bb85631f21e38bd49c875620d
parent0f53eee9afc548c88a19cca6f76f598b824ed678 (diff)
downloadEssentials-90223c6aed40a93b89425e6029fd90d6d18af8d0.tar
Essentials-90223c6aed40a93b89425e6029fd90d6d18af8d0.tar.gz
Essentials-90223c6aed40a93b89425e6029fd90d6d18af8d0.tar.lz
Essentials-90223c6aed40a93b89425e6029fd90d6d18af8d0.tar.xz
Essentials-90223c6aed40a93b89425e6029fd90d6d18af8d0.zip
Allow proper escaping and use of & symbol in nicks (&& = &).
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandnick.java2
1 files changed, 1 insertions, 1 deletions
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)