Removed logging
This commit is contained in:
@@ -29,7 +29,6 @@ public class SoundManager
|
||||
}
|
||||
|
||||
public void playSound(final Sound sound)
|
||||
throws UnsupportedAudioFileException, IOException, LineUnavailableException
|
||||
{
|
||||
new Thread(new Runnable()
|
||||
{
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user