Add missing toggle for clan chat icons
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -31,11 +31,20 @@ import net.runelite.client.config.ConfigItem;
|
||||
@ConfigGroup("clanchat")
|
||||
public interface ClanChatConfig extends Config
|
||||
{
|
||||
@ConfigItem(
|
||||
keyName = "clanChatIcons",
|
||||
name = "Clan Chat Icons",
|
||||
description = "Show clan chat icons next to clan members."
|
||||
)
|
||||
default boolean clanChatIcons()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "recentChats",
|
||||
name = "Recent Chats",
|
||||
description = "Show recent clan chats.",
|
||||
position = 1
|
||||
description = "Show recent clan chats."
|
||||
)
|
||||
default boolean recentChats()
|
||||
{
|
||||
|
||||
@@ -149,6 +149,11 @@ public class ClanChatPlugin extends Plugin
|
||||
|
||||
private void insertClanRankIcon(final ChatMessage message)
|
||||
{
|
||||
if (!config.clanChatIcons())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final ClanMemberRank rank = clanManager.getRank(message.getName());
|
||||
|
||||
if (rank != null && rank != ClanMemberRank.UNRANKED)
|
||||
|
||||
Reference in New Issue
Block a user