Finished adding idle sounds to idle plugin
This commit is contained in:
@@ -532,21 +532,37 @@ public class IdleNotifierPlugin extends Plugin
|
|||||||
if (lastInteractWasCombat)
|
if (lastInteractWasCombat)
|
||||||
{
|
{
|
||||||
notifier.notify("[" + local.getName() + "] is now out of combat!");
|
notifier.notify("[" + local.getName() + "] is now out of combat!");
|
||||||
|
if (config.outOfCombatSound())
|
||||||
|
{
|
||||||
|
soundManager.playSound(Sound.OUT_OF_COMBAT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
notifier.notify("[" + local.getName() + "] is now idle!");
|
notifier.notify("[" + local.getName() + "] is now idle!");
|
||||||
|
if (config.interactionIdleSound())
|
||||||
|
{
|
||||||
|
soundManager.playSound(Sound.IDLE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (checkLowHitpoints())
|
if (checkLowHitpoints())
|
||||||
{
|
{
|
||||||
notifier.notify("[" + local.getName() + "] has low hitpoints!");
|
notifier.notify("[" + local.getName() + "] has low hitpoints!");
|
||||||
|
if (config.getPlayHealthSound())
|
||||||
|
{
|
||||||
|
soundManager.playSound(Sound.LOW_HEATLH);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (checkLowPrayer())
|
if (checkLowPrayer())
|
||||||
{
|
{
|
||||||
notifier.notify("[" + local.getName() + "] has low prayer!");
|
notifier.notify("[" + local.getName() + "] has low prayer!");
|
||||||
|
if (config.getPlayPrayerSound())
|
||||||
|
{
|
||||||
|
soundManager.playSound(Sound.LOW_PRAYER);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (checkLowOxygen())
|
if (checkLowOxygen())
|
||||||
@@ -557,6 +573,10 @@ public class IdleNotifierPlugin extends Plugin
|
|||||||
if (checkFullSpecEnergy())
|
if (checkFullSpecEnergy())
|
||||||
{
|
{
|
||||||
notifier.notify("[" + local.getName() + "] has restored spec energy!");
|
notifier.notify("[" + local.getName() + "] has restored spec energy!");
|
||||||
|
if (config.getSpecSound())
|
||||||
|
{
|
||||||
|
soundManager.playSound(Sound.RESTORED_SPECIAL_ATTACK);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user