mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-07 23:27:08 +02:00
Allow proper escaping and use of & symbol in nicks (&& = &).
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user