Removed logging
This commit is contained in:
@@ -29,7 +29,6 @@ public class SoundManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void playSound(final Sound sound)
|
public void playSound(final Sound sound)
|
||||||
throws UnsupportedAudioFileException, IOException, LineUnavailableException
|
|
||||||
{
|
{
|
||||||
new Thread(new Runnable()
|
new Thread(new Runnable()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -522,17 +522,9 @@ public class IdleNotifierPlugin extends Plugin
|
|||||||
if (config.animationIdle() && checkAnimationIdle(waitDuration, local))
|
if (config.animationIdle() && checkAnimationIdle(waitDuration, local))
|
||||||
{
|
{
|
||||||
notifier.notify("[" + local.getName() + "] is now idle!");
|
notifier.notify("[" + local.getName() + "] is now idle!");
|
||||||
if (this.config.animationIdleSound())
|
if (config.animationIdleSound())
|
||||||
{
|
{
|
||||||
try
|
soundManager.playSound(Sound.IDLE);
|
||||||
{
|
|
||||||
this.soundManager.playSound(Sound.IDLE);
|
|
||||||
}
|
|
||||||
catch (UnsupportedAudioFileException | IOException | LineUnavailableException e)
|
|
||||||
{
|
|
||||||
logger.info("Failed to play Idle sound: {}", e);
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (config.interactionIdle() && checkInteractionIdle(waitDuration, local))
|
if (config.interactionIdle() && checkInteractionIdle(waitDuration, local))
|
||||||
|
|||||||
@@ -172,32 +172,17 @@ public class ZulrahPlugin extends Plugin
|
|||||||
|
|
||||||
if (config.sounds())
|
if (config.sounds())
|
||||||
{
|
{
|
||||||
if (type == ZulrahType.RANGE) {
|
if (type == ZulrahType.RANGE)
|
||||||
try
|
{
|
||||||
{
|
soundManager.playSound(Sound.PRAY_RANGED);
|
||||||
soundManager.playSound(Sound.PRAY_RANGED);
|
|
||||||
}
|
|
||||||
catch (UnsupportedAudioFileException | IOException | LineUnavailableException e)
|
|
||||||
{
|
|
||||||
log.info("Failed to play Idle sound: {}", e);
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (type == ZulrahType.MAGIC) {
|
|
||||||
try
|
if (type == ZulrahType.MAGIC)
|
||||||
{
|
{
|
||||||
soundManager.playSound(Sound.PRAY_MAGIC);
|
soundManager.playSound(Sound.PRAY_MAGIC);
|
||||||
}
|
|
||||||
catch (UnsupportedAudioFileException|IOException|LineUnavailableException e)
|
|
||||||
{
|
|
||||||
log.info("Failed to play Idle sound: {}", e);
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (instance.getPhase() == null)
|
if (instance.getPhase() == null)
|
||||||
{
|
{
|
||||||
instance.setPhase(currentPhase);
|
instance.setPhase(currentPhase);
|
||||||
|
|||||||
Reference in New Issue
Block a user