Clan notice html break line replacement.

Contributed by Sahar.
This commit is contained in:
MobiusDev
2018-05-10 13:38:10 +00:00
parent edd623a366
commit f11d8870a1
7 changed files with 7 additions and 7 deletions

View File

@ -528,7 +528,7 @@ public class EnterWorld implements IClientIncomingPacket
final NpcHtmlMessage notice = new NpcHtmlMessage();
notice.setFile(activeChar, "data/html/clanNotice.htm");
notice.replace("%clan_name%", activeChar.getClan().getName());
notice.replace("%notice_text%", activeChar.getClan().getNotice());
notice.replace("%notice_text%", activeChar.getClan().getNotice().replaceAll("\r\n", "<br>"));
notice.disableValidation();
client.sendPacket(notice);
}