Added options to disable various sound effects.

Fixes #1577
This commit is contained in:
GJ
2013-10-31 09:03:29 -04:00
parent 93d586592e
commit 41da32cd1b
7 changed files with 41 additions and 10 deletions

View File

@ -134,10 +134,15 @@ public final class ChimaeraWing {
player.updateInventory();
mcMMOPlayer.actualizeChimeraWingLastUse();
mcMMOPlayer.setTeleportCommenceLocation(null);
if (Config.getInstance().getStatsTrackingEnabled()) {
MetricsManager.chimeraWingUsed();
}
player.playSound(location, Sound.BAT_TAKEOFF, Misc.BAT_VOLUME, Misc.BAT_PITCH);
if (Config.getInstance().getChimaeraSoundEnabled()) {
player.playSound(location, Sound.BAT_TAKEOFF, Misc.BAT_VOLUME, Misc.BAT_PITCH);
}
player.sendMessage(LocaleLoader.getString("Item.ChimaeraWing.Pass"));
}