Finished adding idle sounds to idle plugin

This commit is contained in:
James Munson
2019-06-12 05:05:47 -07:00
parent b1ea2eb30a
commit 7e6818ab0a

View File

@@ -532,21 +532,37 @@ public class IdleNotifierPlugin extends Plugin
if (lastInteractWasCombat)
{
notifier.notify("[" + local.getName() + "] is now out of combat!");
if (config.outOfCombatSound())
{
soundManager.playSound(Sound.OUT_OF_COMBAT);
}
}
else
{
notifier.notify("[" + local.getName() + "] is now idle!");
if (config.interactionIdleSound())
{
soundManager.playSound(Sound.IDLE);
}
}
}
if (checkLowHitpoints())
{
notifier.notify("[" + local.getName() + "] has low hitpoints!");
if (config.getPlayHealthSound())
{
soundManager.playSound(Sound.LOW_HEATLH);
}
}
if (checkLowPrayer())
{
notifier.notify("[" + local.getName() + "] has low prayer!");
if (config.getPlayPrayerSound())
{
soundManager.playSound(Sound.LOW_PRAYER);
}
}
if (checkLowOxygen())
@@ -557,6 +573,10 @@ public class IdleNotifierPlugin extends Plugin
if (checkFullSpecEnergy())
{
notifier.notify("[" + local.getName() + "] has restored spec energy!");
if (config.getSpecSound())
{
soundManager.playSound(Sound.RESTORED_SPECIAL_ATTACK);
}
}
}