Add missing toggle for clan chat icons

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2019-02-24 19:11:36 +01:00
parent b236dd8fb4
commit 7f1a50ca77
2 changed files with 16 additions and 2 deletions

View File

@@ -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()
{

View File

@@ -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)