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)
throws UnsupportedAudioFileException, IOException, LineUnavailableException
{
new Thread(new Runnable()
{

View File

@@ -522,17 +522,9 @@ public class IdleNotifierPlugin extends Plugin
if (config.animationIdle() && checkAnimationIdle(waitDuration, local))
{
notifier.notify("[" + local.getName() + "] is now idle!");
if (this.config.animationIdleSound())
if (config.animationIdleSound())
{
try
{
this.soundManager.playSound(Sound.IDLE);
}
catch (UnsupportedAudioFileException | IOException | LineUnavailableException e)
{
logger.info("Failed to play Idle sound: {}", e);
e.printStackTrace();
}
soundManager.playSound(Sound.IDLE);
}
}
if (config.interactionIdle() && checkInteractionIdle(waitDuration, local))

View File

@@ -172,32 +172,17 @@ public class ZulrahPlugin extends Plugin
if (config.sounds())
{
if (type == ZulrahType.RANGE) {
try
{
soundManager.playSound(Sound.PRAY_RANGED);
}
catch (UnsupportedAudioFileException | IOException | LineUnavailableException e)
{
log.info("Failed to play Idle sound: {}", e);
e.printStackTrace();
}
if (type == ZulrahType.RANGE)
{
soundManager.playSound(Sound.PRAY_RANGED);
}
if (type == ZulrahType.MAGIC) {
try
{
if (type == ZulrahType.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)
{
instance.setPhase(currentPhase);