Clan notice html break line replacement.
Contributed by Sahar.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user