diff options
author | KHobbits <rob@khobbits.co.uk> | 2011-11-03 22:19:33 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2011-11-03 22:19:33 +0000 |
commit | 51920420ce6b2a92cb5bb0b29421be913e69a794 (patch) | |
tree | 5bceba899765993e630a2c51f4264a4bcd029c14 | |
parent | d171cce45d966da3151a495edba8acea4b4fcab6 (diff) | |
download | Essentials-51920420ce6b2a92cb5bb0b29421be913e69a794.tar Essentials-51920420ce6b2a92cb5bb0b29421be913e69a794.tar.gz Essentials-51920420ce6b2a92cb5bb0b29421be913e69a794.tar.lz Essentials-51920420ce6b2a92cb5bb0b29421be913e69a794.tar.xz Essentials-51920420ce6b2a92cb5bb0b29421be913e69a794.zip |
Allow proper escaping and use of & symbol in nicks (&& = &).
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandnick.java | 2 |
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) |