Merge branch 'master' of https://github.com/runelite/runelite into workpls
# Conflicts: # runelite-client/src/main/java/net/runelite/client/plugins/clanchat/ClanChatPlugin.java # runelite-client/src/main/java/net/runelite/client/plugins/npcunaggroarea/NpcAggroAreaConfig.java
This commit is contained in:
@@ -121,6 +121,7 @@ public class WidgetID
|
|||||||
public static final int MINIGAME_TAB_ID = 76;
|
public static final int MINIGAME_TAB_ID = 76;
|
||||||
public static final int SPELLBOOK_GROUP_ID = 218;
|
public static final int SPELLBOOK_GROUP_ID = 218;
|
||||||
public static final int PVP_GROUP_ID = 90;
|
public static final int PVP_GROUP_ID = 90;
|
||||||
|
public static final int FISHING_TRAWLER_GROUP_ID = 366;
|
||||||
public static final int ZEAH_MESS_HALL_GROUP_ID = 235;
|
public static final int ZEAH_MESS_HALL_GROUP_ID = 235;
|
||||||
public static final int KOUREND_FAVOUR_GROUP_ID = 246;
|
public static final int KOUREND_FAVOUR_GROUP_ID = 246;
|
||||||
public static final int LOOTING_BAG_GROUP_ID = 81;
|
public static final int LOOTING_BAG_GROUP_ID = 81;
|
||||||
|
|||||||
@@ -91,19 +91,27 @@ public class ClanChatPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void onClanMemberJoined(final ClanMemberJoined event) {
|
public void onClanMemberJoined(ClanMemberJoined event)
|
||||||
final ClanMember member = event.getMember();
|
{
|
||||||
if (member.getWorld() == this.client.getWorld()) {
|
final ClanMember member = event.getMember();
|
||||||
final String memberName = Text.toJagexName(member.getUsername());
|
|
||||||
for (final Player player : this.client.getPlayers()) {
|
if (member.getWorld() == client.getWorld())
|
||||||
if (player != null && memberName.equals(Text.toJagexName(player.getName()))) {
|
{
|
||||||
ClanChatPlugin.clanMembers.add(player);
|
final Player local = client.getLocalPlayer();
|
||||||
this.addClanCounter();
|
final String memberName = Text.toJagexName(member.getUsername());
|
||||||
break;
|
|
||||||
}
|
for (final Player player : client.getPlayers())
|
||||||
}
|
{
|
||||||
}
|
if (player != null && player != local && memberName.equals(Text.toJagexName(player.getName())))
|
||||||
|
{
|
||||||
|
clanMembers.add(player);
|
||||||
|
addClanCounter();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (this.clanJoinedTick == this.client.getTickCount()) {
|
if (this.clanJoinedTick == this.client.getTickCount()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -292,13 +300,18 @@ public class ClanChatPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void onPlayerSpawned(final PlayerSpawned event) {
|
public void onPlayerSpawned(PlayerSpawned event)
|
||||||
if (event.getPlayer().isClanMember()) {
|
{
|
||||||
ClanChatPlugin.clanMembers.add(event.getPlayer());
|
final Player local = client.getLocalPlayer();
|
||||||
this.addClanCounter();
|
final Player player = event.getPlayer();
|
||||||
}
|
|
||||||
}
|
if (player != local && player.isClanMember())
|
||||||
|
{
|
||||||
|
clanMembers.add(player);
|
||||||
|
addClanCounter();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void onPlayerDespawned(final PlayerDespawned event) {
|
public void onPlayerDespawned(final PlayerDespawned event) {
|
||||||
|
|||||||
@@ -104,4 +104,15 @@ public interface NpcAggroAreaConfig extends Config
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "npcUnaggroShowNotWorkingOverlay",
|
||||||
|
name = "Hide overlay hint",
|
||||||
|
description = "Hide overlay hint if plugin is enabled in unsupported area",
|
||||||
|
position = 6
|
||||||
|
)
|
||||||
|
default boolean hideOverlayHint()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user