Removed logging

This commit is contained in:
James Munson
2019-06-12 04:54:30 -07:00
parent 40b1e53b31
commit b1ea2eb30a
3 changed files with 8 additions and 32 deletions

View File

@@ -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()
{ {

View File

@@ -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))

View File

@@ -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);