mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-27 05:59:32 +01:00
Add Chat Formatting Support For Servers (#1483)
This commit is contained in:
1 parent
ae9dbd837d
commit
71707fbb8c
11 files changed
+128
-12
No files matched your search
@@ -969,7 +969,7 @@ void PlayerConnection::handleChat(shared_ptr<ChatPacket> packet)
|
||||
}
|
||||
#else
|
||||
wstring formatted = L"<" + player->name + L"> " + message;
|
||||
server->getPlayers()->broadcastAll(shared_ptr<ChatPacket>(new ChatPacket(formatted)));
|
||||
server->getPlayers()->broadcastAll(shared_ptr<ChatPacket>(new ChatPacket(app.FormatChatMessage(formatted, false))));
|
||||
#endif
|
||||
chatSpamTickCount += SharedConstants::TICKS_PER_SECOND;
|
||||
if (chatSpamTickCount > SharedConstants::TICKS_PER_SECOND * 10)
|
||||
|
||||
Reference in new issue
Block a user