Merge pull request #927 from ThatGamerBlue/master

npcunaggroarea: make the notifications respect the config
This commit is contained in:
Tyler Bochard
2019-07-07 17:34:05 -07:00
committed by GitHub

View File

@@ -521,10 +521,16 @@ public class NpcAggroAreaPlugin extends Plugin
void doNotification() void doNotification()
{ {
if (!this.sendNotification)
{
return;
}
if (hasSentNotification) if (hasSentNotification)
{ {
return; return;
} }
final Player local = client.getLocalPlayer(); final Player local = client.getLocalPlayer();
hasSentNotification = true; hasSentNotification = true;
notifier.notify("[" + local.getName() + "]'s aggression timer has run out!"); notifier.notify("[" + local.getName() + "]'s aggression timer has run out!");