Made ironman icons visible in clan and global chat (requires world.ironman_icons to be true)

Authentic tormented demon safe spotting
Added cannon restriction to tormented demon area
This commit is contained in:
Ceikry
2023-05-27 13:59:48 +00:00
committed by Ryan
parent c3c836de4d
commit 5404ef849d
8 changed files with 62 additions and 27 deletions
@@ -210,7 +210,7 @@ object PacketProcessor {
val messages = splitChatMessage(pkt.message.substring(2), pkt.player.name.length + 3, false)
for (message in messages) {
if (message.isNotBlank())
GlobalChat.process(pkt.player.username, message)
GlobalChat.process(pkt.player.username, message, Rights.getChatIcon(pkt.player))
}
return
}
@@ -222,7 +222,7 @@ object PacketProcessor {
builder.sender = pkt.player.name
builder.clanName = pkt.player.communication.clan.owner.lowercase().replace(" ", "_")
builder.message = message
builder.rank = pkt.player.rights.ordinal
builder.rank = Rights.getChatIcon(pkt.player)
ManagementEvents.publish(builder.build())
}
return