Merge pull request #927 from ThatGamerBlue/master
npcunaggroarea: make the notifications respect the config
This commit is contained in:
@@ -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!");
|
||||||
|
|||||||
Reference in New Issue
Block a user